|
|
@@ -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;
|