diff --git a/src/QUI/ERP/Accounting/Calc.php b/src/QUI/ERP/Accounting/Calc.php index 1b94a49c42d9b0e60f4d6112c3faa0a1a8254ec3..8a3f3ea61509aa9894893de61ca42a65a8453e1a 100644 --- a/src/QUI/ERP/Accounting/Calc.php +++ b/src/QUI/ERP/Accounting/Calc.php @@ -597,9 +597,7 @@ public function calcArticlePrice(Article $Article, $callback = false) // korrektur rechnung / 1 cent problem $checkBrutto = $nettoPriceNotRounded * ($vat / 100 + 1); $checkBrutto = round($checkBrutto, $Currency->getPrecision()); - $checkVat = $checkBrutto - $nettoPriceNotRounded; - $checkVat = round($checkVat * $Article->getQuantity(), $Currency->getPrecision()); if ($nettoPrice + $checkVat !== $checkBrutto) { $diff = round( @@ -611,6 +609,7 @@ public function calcArticlePrice(Article $Article, $callback = false) } // sum + $checkVat = round($checkVat * $Article->getQuantity(), $Currency->getPrecision()); $nettoSum = $this->round($nettoPrice * $Article->getQuantity()); $vatSum = $nettoSum * ($vat / 100);