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

Merge branch 'next-3.x' into 'main'

refactor: moved netto not rounded - that it is set up like article calc

See merge request !107
Übergeordnete 7926e335 853614ae
No related branches found
Tags 1.6.5
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!107refactor: moved netto not rounded - that it is set up like article calc
Pipeline #8665 bestanden mit Phase
in 49 Sekunden
......@@ -537,6 +537,7 @@ public function calcArticlePrice(Article $Article, $callback = false)
$nettoPrice = $Article->getUnitPriceUnRounded()->value();
$nettoPrice = round($nettoPrice, $Currency->getPrecision());
$nettoPriceNotRounded = $Article->getUnitPriceUnRounded()->getValue();
$vat = $Article->getVat();
$basisNettoPrice = $nettoPrice;
......@@ -548,7 +549,6 @@ public function calcArticlePrice(Article $Article, $callback = false)
// discounts
$Discount = $Article->getDiscount();
$nettoPriceNotRounded = $Article->getUnitPriceUnRounded()->getValue();
if ($Discount) {
switch ($Discount->getCalculation()) {
......
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