Files
OMS/app/ome/lib/delivery.php
chenping 61783b7d01 1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数

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

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

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

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

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

8. 【修复】基础物料分类管理问题
2026-04-01 11:59:17 +08:00

37 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* 发货单业务Lib方法类
*
* @author wangbiao@shopex.cn
* @version 2025.09.25
*/
class ome_delivery
{
public function autoVirtualDelivery(&$cursor_id, $params, &$error_msg=null)
{
//data
$sdfdata = $params['sdfdata'];
$delivery_id = $sdfdata['delivery_id'];
$delivery_bn = $sdfdata['delivery_bn'];
$logi_id = $sdfdata['logi_id'];
if(empty($delivery_id)){
$error_msg = '没有发货单信息';
return false;
}
// params
$virtualParams = array(
'delivery_bn' => $delivery_bn, // 发货单号
'status' => 'delivery',
'logi_id' => $logi_id, // 物流公司ID直接使用发货单上的物流公司ID
'logi_no' => $delivery_bn, // 物流单号:直接使用发货单号作为虚拟物流单号
);
$result = kernel::single('ome_event_receive_delivery')->update($virtualParams);
if($result['rsp'] != 'succ'){
$error_msg = '虚拟发货单更新失败:'.$result['msg'];
return false;
}
return false;
}
}