|
|
@@ -73,7 +73,6 @@ class OrderService extends BaseService
|
|
|
$unitType = $val['unitType'] ?? 0;
|
|
|
$currentId = $val['productId'] ?? 0;
|
|
|
$num = $val['num'] ?? 0;
|
|
|
- $currentPrice = 0;
|
|
|
$unitPrice = 0;
|
|
|
if ($property == dict::getDict('property', 'goods')) {
|
|
|
$name = $goodsInfo[$currentId]['name'] ?? '';
|
|
|
@@ -158,9 +157,10 @@ class OrderService extends BaseService
|
|
|
$goodsPrice = bcadd($goodsPrice, bcmul($unitPrice, $num, 2), 2);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
$sendCost = $data['sendCost'] ?? 0;
|
|
|
$totalPrice = bcadd($goodsPrice, $sendCost, 2);
|
|
|
- $modifyPrice = $data['modifyPrice'] ?? 0;
|
|
|
+ $modifyPrice = $totalPrice;
|
|
|
if ($modifyPrice > $totalPrice) {
|
|
|
//人工资材包装费
|
|
|
$data['labourCost'] = bcsub($modifyPrice, $totalPrice, 2);
|