Sfoglia il codice sorgente

运输计算提货费

hu hao 5 anni fa
parent
commit
3adf2fa111
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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']);
             $updateParams[] = [
                 '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(),
             ];
         }