Browse Source

自提不计算配送费

master
weigang 5 years ago
parent
commit
01bf71789d
  1. 4
      app/Service/v3/Implementations/OrderOnlineService.php

4
app/Service/v3/Implementations/OrderOnlineService.php

@ -289,7 +289,11 @@ class OrderOnlineService implements OrderOnlineServiceInterface
$orderAmount = bcadd((string)$orderAmount, '0', 2); $orderAmount = bcadd((string)$orderAmount, '0', 2);
$totalAmount = bcadd((string)$totalAmount, (string)$orderAmount); $totalAmount = bcadd((string)$totalAmount, (string)$orderAmount);
if ($shippingType != Shipping::TYPE_SELF_TAKE) {
$totalAmount = bcadd((string)$totalAmount, (string)$deliveryAmount); $totalAmount = bcadd((string)$totalAmount, (string)$deliveryAmount);
}
$totalAmount = bcadd((string)$totalAmount, (string)$serviceMoney); $totalAmount = bcadd((string)$totalAmount, (string)$serviceMoney);
$totalAmount = bcsub((string)$totalAmount, (string)$couponMoney, 2); $totalAmount = bcsub((string)$totalAmount, (string)$couponMoney, 2);

Loading…
Cancel
Save