修改往期补单入库 #10

Merged
mkm merged 1 commits from dev into main 2025-04-11 10:24:39 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ class BeforehandOrderController extends BaseAdminController
'regional_manager' => $params['regional_manager'] ?? '', 'regional_manager' => $params['regional_manager'] ?? '',
]; ];
$params['other_data'] = $other_data; $params['other_data'] = $other_data;
if ($params['order_type'] == 7) { if (in_array($params['order_type'], [7, 9])) {
PurchaseProductOfferLogic::batchCreate($params); PurchaseProductOfferLogic::batchCreate($params);
} else { } else {
BeforehandOrderLogic::add($params); BeforehandOrderLogic::add($params);

View File

@ -490,7 +490,7 @@ class PurchaseProductOfferLogic extends BaseLogic
$procurementOrder->order_id = getNewOrderId('CG'); $procurementOrder->order_id = getNewOrderId('CG');
$procurementOrder->buyer_id = $params['buyer_id']; $procurementOrder->buyer_id = $params['buyer_id'];
$procurementOrder->admin_id = $params['admin_id']; $procurementOrder->admin_id = $params['admin_id'];
$procurementOrder->order_type = 7; $procurementOrder->order_type = $params['order_type'];
$procurementOrder->total_price = 0; $procurementOrder->total_price = 0;
$procurementOrder->pay_price = 0; $procurementOrder->pay_price = 0;
$procurementOrder->save(); $procurementOrder->save();