Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 1a1a441d erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

feat: erp#78

Übergeordneter 53cd7010
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -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);
}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren