Skip to content
Code-Schnipsel Gruppen Projekte
Commit 86b9dbad erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

Merge branch 'dev' of dev.quiqqer.com:quiqqer/coupons into dev

Übergeordnete 391fc81f 46ef7ee2
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -82,6 +82,21 @@ public static function onQuiqqerOrderBasketToOrder(
])
);
if ($Discount->getAttribute('scope') !== QUI\ERP\Discount\Handler::DISCOUNT_SCOPE_TOTAL) {
// add to the product
foreach ($Products->getProducts() as $Product) {
if ($Discount->canUsedWith($Product) === false) {
continue;
}
if ($Product instanceof QUI\ERP\Products\Product\UniqueProduct) {
$Product->getPriceFactors()->add($PriceFactor);
}
}
continue;
}
$PriceFactors->addToEnd($PriceFactor);
}
}
......
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