Explorar el Código

成本价不再四舍五入

shish hace 3 años
padre
commit
9ed73af53e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      biz-ghs/order/classes/PurchaseOrderClass.php

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

@@ -453,7 +453,7 @@ class PurchaseOrderClass extends BaseClass
                 $unitFreight = bcmul($avgKgWeight, $productWeight, 2);
                 $unitCost = bcadd($unitCgPrice, $unitFreight, 2);
                 //四舍五入取整数
-                $unitCost = round($unitCost);
+                //$unitCost = round($unitCost);
                 $batchData[$currentKey]['bigFreight'] = $unitFreight;
                 $batchData[$currentKey]['cost'] = $unitCost;