Compare commits

..

No commits in common. "40ede2171013cdab56cf028d9f9e994c9f7d03fc" and "f7379b663a26b4485caab8b5e6dc933bc13a5802" have entirely different histories.

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 (in_array($params['order_type'], [7, 9])) { if ($params['order_type'] == 7) {
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 = $params['order_type']; $procurementOrder->order_type = 7;
$procurementOrder->total_price = 0; $procurementOrder->total_price = 0;
$procurementOrder->pay_price = 0; $procurementOrder->pay_price = 0;
$procurementOrder->save(); $procurementOrder->save();