diff --git a/src/QUI/ERP/Accounting/Calc.php b/src/QUI/ERP/Accounting/Calc.php index 81831cc8b76ef22dfd2bded04e83e4ac00d289c6..4a3dc60e9ce9299fa5ba8f8c31bde34f27a7ab43 100644 --- a/src/QUI/ERP/Accounting/Calc.php +++ b/src/QUI/ERP/Accounting/Calc.php @@ -414,11 +414,11 @@ public function calcArticleList(ArticleList $List, callable | bool $callback = f } // delete 0 % vat, 0% vat is allowed to calculate more easily - if (isset($vatText[0])) { + if (isset($vatText[0])) { // @phpstan-ignore-line unset($vatText[0]); } - if (isset($vatArray[0])) { + if (isset($vatArray[0])) { // @phpstan-ignore-line unset($vatArray[0]); } @@ -475,6 +475,9 @@ public function calcArticleList(ArticleList $List, callable | bool $callback = f // counterbalance - gegenrechnung // works only for one vat entry + + // @todo: check -> wegen is netto, müsste eigentlich nach dem if + // @phpstan-ignore-next-line if (count($vatArray) === 1 && $isNetto) { $vat = key($vatArray); $netto = $bruttoSum / ((float)$vat / 100 + 1);