shish %!s(int64=3) %!d(string=hai) anos
pai
achega
4dd4ddec66
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      biz-ghs/order/classes/PurchaseOrderClass.php

+ 2 - 1
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -407,7 +407,8 @@ class PurchaseOrderClass extends BaseClass
 
 
         try {
         try {
             //总运费/总公斤数,计算每公斤的运费
             //总运费/总公斤数,计算每公斤的运费
-            $avgKgWeight = bcdiv($totalFreight, $totalWeight, 2);
+            $avgKgWeight = bcdiv($totalFreight, $totalWeight, 3);
+            $avgKgWeight = round($avgKgWeight, 2);
             $data['avgKgWeight'] = $avgKgWeight;
             $data['avgKgWeight'] = $avgKgWeight;
             noticeUtil::push("{$avgKgWeight} {$totalFreight} {$totalWeight}", '15280215347');
             noticeUtil::push("{$avgKgWeight} {$totalFreight} {$totalWeight}", '15280215347');