调整往期补单
This commit is contained in:
parent
4c918cca71
commit
bd6018ab1b
@ -218,16 +218,6 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
||||
];
|
||||
$res = WarehouseOrder::create($arr);
|
||||
foreach ($offer_list as $k => $v) {
|
||||
// if (!empty($v['source_order_info'])) {
|
||||
// // 采购单来源于往期补单,需要减少对应订单的入库数量
|
||||
// $sourceOrderInfo = reset_index($v['source_order_info'], 'source_order_id');
|
||||
// $orders = BeforehandOrder::field('id,order_type')->whereIn('id', array_keys($sourceOrderInfo))->select()->toArray();
|
||||
// foreach ($orders as $order) {
|
||||
// if ($order['order_type'] == 6) {
|
||||
// $v['buyer_nums'] = $v['buyer_nums'] - $sourceOrderInfo[$order['id']]['need_num'];
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
$data['admin_id'] = $params['admin_id'];
|
||||
$data['order_type'] = $beforehandOrder['order_type'];
|
||||
$data['store_id'] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user