diff --git a/ajax/backend/getCouponPrice.php b/ajax/backend/getCouponPrice.php index 2204c9ad3d8f30cffc0000385cbaae6bee873594..0c21d5e61d8cbe42a4b2309d4c1bd7c09e9fa506 100644 --- a/ajax/backend/getCouponPrice.php +++ b/ajax/backend/getCouponPrice.php @@ -20,6 +20,14 @@ function ($couponId, $vat) { foreach ($discounts as $Discount) { $PriceFactor = $Discount->toPriceFactor(); + if ($PriceFactor->getCalculation() === QUI\ERP\Accounting\Calc::CALCULATION_PERCENTAGE) { + continue; + } + + if ($PriceFactor->getCalculation() === QUI\ERP\Accounting\Calc::CALCULATION_COMPLEMENT) { + continue; + } + if ($vat !== false) { $PriceFactor->setVat($vat); }