mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-26 02:35:47 +08:00
1. 【新增】售后单售后原因类型支持搜索
2. 【新增】手工创建订单折扣可输入正数 3. 【优化】盘点申请单确认 4. 【修复】采购退货单模拟出库失败问题 5. 【新增】订单金额客户实付与结算金额 6. 【优化】仓库发货统计报表物料名称显示 7. 【优化】自有仓储虚拟发货逻辑 8. 【修复】基础物料分类管理问题
This commit is contained in:
@@ -92,11 +92,12 @@ $db['order_front'] = array(
|
||||
),
|
||||
'status' => array(
|
||||
'type' => array(
|
||||
'active' => '活动',
|
||||
'acitve' => '活动',
|
||||
'finish' => '已签收',
|
||||
'close' => '已作废',
|
||||
),
|
||||
'default' => 'acitve',
|
||||
'default' => 'active',
|
||||
'required' => true,
|
||||
'label' => '业务状态',
|
||||
'in_list' => true,
|
||||
|
||||
@@ -460,6 +460,10 @@ class invoice_order
|
||||
if ($params["ship_tax"]) {
|
||||
$updateInvoiceData['ship_tax'] = $params["ship_tax"];
|
||||
}
|
||||
// 更新发票抬头
|
||||
if (isset($params['title'])) {
|
||||
$updateInvoiceData['title'] = trim($params['title']);
|
||||
}
|
||||
if ($params['invoice_amount']) {
|
||||
$updateInvoiceData['amount'] = $params['invoice_amount'];
|
||||
$updateInvoiceData['cost_tax'] = array_sum(array_column($invoice_order_items,'cost_tax'));
|
||||
|
||||
@@ -61,7 +61,13 @@ class invoice_order_front {
|
||||
return [true, ['msg'=>'更新完成']];
|
||||
}
|
||||
$inData['status'] = $inData['status'] ? : 'acitve';
|
||||
$inData['title'] = $inData['title'] ? : '个人';
|
||||
$inData['title'] = $inData['title'] ? : '个人';
|
||||
|
||||
// 发票抬头最多支持150个字符,防止SQL错误
|
||||
if(strlen($inData['title']) > 150){
|
||||
$inData['title'] = kernel::single('ome_func')->substrStringSafe($inData['title'], 150);
|
||||
}
|
||||
|
||||
$inData = kernel::single('invoice_order_front_router', $source)->getMain($inData);
|
||||
if(empty($inData)) {
|
||||
return [false, ['msg'=>'该来源暂不支持:'.$source]];
|
||||
|
||||
Reference in New Issue
Block a user