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