feat: 修改 OpurchaseclassLogic.php 中的价格计算和供应商余额更新逻辑
This commit is contained in:
parent
a5861b0aaa
commit
575280f495
@ -257,7 +257,7 @@ class OpurchaseclassLogic extends BaseLogic
|
||||
$price=0;
|
||||
if ($nums != 0) {
|
||||
$price = bcmul($find['price'], $nums, 2);
|
||||
Supplier::where('id', $id)->inc('mer_money', $price)->update();
|
||||
Supplier::where('id', $find['supplier_id'])->inc('mer_money', $price)->update();
|
||||
}
|
||||
$number=Opurchaseclass::where('id',$find['order_id'])->value('number');
|
||||
$time=time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user