|
|
@@ -90,7 +90,7 @@ class OrderShopPriceUtils implements OrderShopPriceUtilsInterface |
|
|
|
{ |
|
|
|
|
|
|
|
foreach ($order->getOrderReductionCarts() as $orderReductionCart) { |
|
|
|
if($orderReductionCart->getAppliedTo() == ReductionCart::APPLIED_TO_ORDER_PRODUCTS) { |
|
|
|
if($orderReductionCart->getAppliedTo() === ReductionCart::APPLIED_TO_ORDER_PRODUCTS) { |
|
|
|
if ($orderReductionCart->getUnit() == 'percent') { |
|
|
|
|
|
|
|
$priceWithTax = $this->applyReductionPercent( |
|
|
@@ -104,7 +104,7 @@ class OrderShopPriceUtils implements OrderShopPriceUtilsInterface |
|
|
|
$this->getTotalOrderProducts($order), |
|
|
|
$orderReductionCart->getValue() |
|
|
|
), |
|
|
|
$order->getTaxRateAverage() |
|
|
|
$this->getTaxRateAverage($order) |
|
|
|
); |
|
|
|
} else if ($orderReductionCart->getBehaviorTaxRate() == 'tax-included') { |
|
|
|
$priceWithTax = |