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

refactor: more precise checking of discount scope

Übergeordneter 86b9dbad
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -82,7 +82,9 @@ public static function onQuiqqerOrderBasketToOrder(
])
);
if ($Discount->getAttribute('scope') !== QUI\ERP\Discount\Handler::DISCOUNT_SCOPE_TOTAL) {
if ($Discount->getAttribute('scope') === QUI\ERP\Discount\Handler::DISCOUNT_SCOPE_EVERY_PRODUCT ||
$Discount->getAttribute('scope') === QUI\ERP\Discount\Handler::DISCOUNT_SCOPE_UNIQUE
) {
// add to the product
foreach ($Products->getProducts() as $Product) {
if ($Discount->canUsedWith($Product) === false) {
......
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