|
|
@@ -19,6 +19,7 @@ use bizGhs\stock\services\StockRecordService;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
|
use common\components\dict;
|
|
|
use common\components\imgUtil;
|
|
|
+use common\components\noticeUtil;
|
|
|
use common\components\orderSn;
|
|
|
use common\components\util;
|
|
|
use Yii;
|
|
|
@@ -451,6 +452,8 @@ 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);
|
|
|
|