|
|
@@ -410,7 +410,6 @@ class PurchaseOrderClass extends BaseClass
|
|
|
$avgKgWeight = bcdiv($totalFreight, $totalWeight, 3);
|
|
|
$avgKgWeight = round($avgKgWeight, 2);
|
|
|
$data['avgKgWeight'] = $avgKgWeight;
|
|
|
- noticeUtil::push("{$avgKgWeight} {$totalFreight} {$totalWeight}", '15280215347');
|
|
|
|
|
|
$data['cgStyle'] = dict::getDict('cgStyle', 'ghs');
|
|
|
$order = self::add($data, true);
|
|
|
@@ -454,8 +453,6 @@ class PurchaseOrderClass extends BaseClass
|
|
|
$unitCgPrice = $v['bigPrice'] ?? 0;
|
|
|
$productWeight = $productList[$productId]['weight'] ?? 0;
|
|
|
$unitFreight = bcmul($avgKgWeight, $productWeight, 3);
|
|
|
- noticeUtil::push("{$unitFreight} {$avgKgWeight} {$productWeight}", '15280215347');
|
|
|
-
|
|
|
$unitCost = bcadd($unitCgPrice, $unitFreight, 3);
|
|
|
$unitCost = round($unitCost, 2);
|
|
|
|