Skip to content
Code-Schnipsel Gruppen Projekte
Commit 46ef7ee2 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: Product assignment considered

Übergeordneter e7173ffb
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -82,6 +82,21 @@ public static function onQuiqqerOrderBasketToOrder( ...@@ -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); $PriceFactors->addToEnd($PriceFactor);
} }
} }
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren