feat: 修改 OpurchaseclassLogic.php 中的价格计算和供应商余额更新逻辑

This commit is contained in:
mkm 2024-05-25 17:15:59 +08:00
parent a5861b0aaa
commit 575280f495

View File

@ -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();