1. 【新增】售后单售后原因类型支持搜索

2. 【新增】手工创建订单折扣可输入正数

3. 【优化】盘点申请单确认

4. 【修复】采购退货单模拟出库失败问题

5. 【新增】订单金额客户实付与结算金额

6. 【优化】仓库发货统计报表物料名称显示

7. 【优化】自有仓储虚拟发货逻辑

8. 【修复】基础物料分类管理问题
This commit is contained in:
chenping
2026-04-01 11:59:17 +08:00
parent 9341122827
commit 61783b7d01
754 changed files with 46179 additions and 5700 deletions

View File

@@ -88,11 +88,34 @@ class erpapi_shop_request_order extends erpapi_shop_request_abstract
return $this->doGetOrderStatusRet($rsp);
}
#获取订单发票汇总信息
public function getActuallyPay($order_bn)
{
$params = array('tid' => $order_bn);
$title = "店铺(" . $this->__channelObj->channel['name'] . ")获取前端店铺" . $order_bn . "的客户实付信息";
$rsp = $this->__caller->call(SHOP_GET_TRADE_INVOICE_SUMMARY, $params, array(), $title, 10, $order_bn);
return $this->doGetActuallyPayRet($rsp);
}
protected function doGetOrderStatusRet($rsp) {
$rsp['data'] = json_decode($rsp['data'], 1);
return $rsp;
}
protected function doGetActuallyPayRet($rsp) {
if(empty($rsp['data'])) {
$rsp['data'] = array();
} else {
$rsp['data'] = json_decode($rsp['data'], 1);
// consumer_invoice_amount
if(isset($rsp['data']['consumer_invoice_amount'])){
$rsp['data']['actually_pay'] = $rsp['data']['consumer_invoice_amount'] / 100;
}
}
return $rsp;
}
#订单编辑
public function updateIframe($order,$is_request=true,$ext=array()) {
// 默认本地编辑
@@ -400,4 +423,22 @@ class erpapi_shop_request_order extends erpapi_shop_request_abstract
* 子类可以重写此方法实现具体的订单确认逻辑
*/
public function confirm($order){}
/**
* 隐私号G组更新报备外呼主叫号码组
*
* @param array $params 单个订单信息
* @return array
*/
public function bindSecretMobiles($params)
{}
/**
* 隐私号G组查询查询报备外呼主叫号码组
*
* @param array $params 单个订单信息
* @return array
*/
public function querySecretMobiles($params)
{}
}