diff --git a/app/api/logic/DemoLogic.php b/app/api/logic/DemoLogic.php index 30a6f092..57478c09 100644 --- a/app/api/logic/DemoLogic.php +++ b/app/api/logic/DemoLogic.php @@ -154,7 +154,7 @@ class DemoLogic extends BaseLogic } }); $total_price=WarehouseProduct::where('oid', $outbound_id)->sum('total_price'); - BeforehandOrder::where('id', $params['id'])->update(['total_price' => $total_price]); + BeforehandOrder::where('id', $outbound_id)->update(['total_price' => $total_price]); } }