shish 3 yıl önce
ebeveyn
işleme
6cd9dc3ca8

+ 3 - 1
biz-ghs/order/classes/OrderClass.php

@@ -254,8 +254,10 @@ class OrderClass extends BaseClass
         }
 
         $order->itemPrice = $itemPrice;
-        $sendCost = 0;
+        $sendCost = $order->sendCost ?? 0;
         $currentPrice = bcadd($itemPrice, $sendCost, 2);
+        $packCost = $order->packCost ?? 0;
+        $currentPrice = bcadd($currentPrice, $packCost, 2);
 
         $shopId = $order->shopId ?? 0;
         $shop = ShopClass::getLockById($shopId);

+ 4 - 1
biz-hd/purchase/classes/PurchaseClass.php

@@ -199,8 +199,11 @@ class PurchaseClass extends BaseClass
         }
 
         $cg->itemPrice = $itemPrice;
-        $sendCost = 0;
+        $sendCost = $cg->sendCost ?? 0;
         $currentPrice = bcadd($itemPrice, $sendCost, 2);
+        $packCost = $cg->packCost ?? 0;
+        $currentPrice = bcadd($currentPrice, $packCost, 2);
+
         $kiloFee = $data['kiloFee'] ?? 0;
         $miniKilo = $data['miniKilo'] ?? 0;
         $calcWeight = $weight > $miniKilo ? $weight : $miniKilo;