修改采购单价格的错误
This commit is contained in:
parent
91a119c896
commit
ccc774593a
@ -186,7 +186,7 @@ class PurchaseProductOfferLogic extends BaseLogic
|
|||||||
$product = StoreProduct::where('id', $offer['product_id'])->withTrashed()->field('id,store_name,top_cate_id,two_cate_id')->find();
|
$product = StoreProduct::where('id', $offer['product_id'])->withTrashed()->field('id,store_name,top_cate_id,two_cate_id')->find();
|
||||||
$unit_name=StoreProductUnit::where('id', $offer['unit'])->value('name');
|
$unit_name=StoreProductUnit::where('id', $offer['unit'])->value('name');
|
||||||
$order = BeforehandOrder::where('id', $params['bhoid'])->find();
|
$order = BeforehandOrder::where('id', $params['bhoid'])->find();
|
||||||
$order->pay_price = bcadd($offer['total_price'], $order->pay_price, 2);
|
$order->pay_price = PurchaseProductOffer::where('order_id', $order['id'])->sum('total_price');
|
||||||
$order->total_price = $order->pay_price;
|
$order->total_price = $order->pay_price;
|
||||||
$order->save();
|
$order->save();
|
||||||
self::setProductGroupPrice($params, $product);
|
self::setProductGroupPrice($params, $product);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user