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

fix: candyman-gmbh/projektplanung#78

Übergeordneter aeb85aa4
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -100,8 +100,6 @@ public static function onQuiqqerOrderBasketToOrderEnd(
return;
}
$Shipping->setOrder($Order);
$PriceFactors = $Products->getPriceFactors();
$PriceFactors->addToEnd($Shipping->toPriceFactor());
......
......@@ -335,7 +335,7 @@ public function canUsedInOrder($Order)
$articleList = $Articles->getArticles();
$articles = $this->getAttribute('articles');
$articleOnly = $this->getAttribute('articles_only');
$articleOnly = (int)$this->getAttribute('articles_only');
$unitTerms = $this->getUnitTerms();
$quantityFrom = $this->getAttribute('purchase_quantity_from'); // Einkaufsmenge ab
......@@ -362,6 +362,8 @@ public function canUsedInOrder($Order)
}
$articles = \array_flip($articles);
} else {
$articleOnly = 0;
}
foreach ($articleList as $Article) {
......@@ -417,7 +419,6 @@ public function canUsedInOrder($Order)
}
}
if ($articleFound && $articleOnly && \count($articleList) !== 1) {
QUI\ERP\Shipping\Debug::addLog(
"{$this->getTitle()} :: is not a single article"
......
......@@ -591,7 +591,7 @@ public function getShippingRules()
if (!$Rule->canUsedInOrder($this->Order)) {
if ($debugging) {
Debug::addLog("### {$Rule->getTitle()} can not use in order");
Debug::addLog("### {$Rule->getTitle()} can not used in order");
$debuggingLog[] = [
'id' => $Rule->getId(),
......@@ -601,13 +601,13 @@ public function getShippingRules()
];
}
if ($debugging) {
Debug::addLog("### {$Rule->getTitle()} can use in order");
}
continue;
}
if ($debugging) {
Debug::addLog("### {$Rule->getTitle()} can used in order");
}
$result[] = $Rule;
if ($debugging) {
......
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