修改预订单采购商品的错误

This commit is contained in:
lewis 2024-12-27 17:30:00 +08:00
parent 26da169c1f
commit 91a119c896

View File

@ -85,11 +85,6 @@ class BeforehandOrderCartInfoController extends BaseAdminController
}
}
$find->source_order_info = array_values($json);
$productPrice = StoreProduct::where('id',$res['product_id'])->value('price');
$procurementOrder = BeforehandOrder::where('id', $find['order_id'])->find();
$procurementOrder->total_price = bcsub($procurementOrder->total_price, bcmul($productPrice, $res['cart_num'], 2), 2);
$procurementOrder->pay_price = $procurementOrder->total_price;
$procurementOrder->save();
}
if ($find->need_num <= 0) {
$find->delete_time = time();