hu hao преди 5 години
родител
ревизия
3adf2fa111
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Services/WaybillService.php

+ 1 - 1
app/Services/WaybillService.php

@@ -185,7 +185,7 @@ class WaybillService
             $waybill['pick_up_fee']=round(($waybill->carrier_weight_other/$daily_total_weight)*$param['billing']);
             $waybill['pick_up_fee']=round(($waybill->carrier_weight_other/$daily_total_weight)*$param['billing']);
             $updateParams[] = [
             $updateParams[] = [
                 'id' => $waybill->id,
                 'id' => $waybill->id,
-                'pick_up_fee' => (($waybill->carrier_weight_other/$daily_total_weight)*$param['billing']),
+                'pick_up_fee' => bcmul(bcdiv($waybill->carrier_weight_other,$daily_total_weight,2),$param['billing'],2),
                 'updated_at' => Carbon::now()->toDateTimeString(),
                 'updated_at' => Carbon::now()->toDateTimeString(),
             ];
             ];
         }
         }