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

fix: TYPE_INVOICE_CANCEL + TYPE_INVOICE_STORNO consider at total

Übergeordneter db0cc973
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -933,11 +933,12 @@ public static function calculateTotal(array $invoiceList, $Currency = null): arr
$nettoToPay = 0;
foreach ($invoiceList as $invoice) {
if (isset($invoice['type']) && (int)$invoice['type'] === Handler::TYPE_INVOICE_CANCEL ||
isset($invoice['type']) && (int)$invoice['type'] === Handler::TYPE_INVOICE_STORNO
) {
continue;
}
// if (isset($invoice['type']) && (int)$invoice['type'] === Handler::TYPE_INVOICE_CANCEL ||
// isset($invoice['type']) && (int)$invoice['type'] === Handler::TYPE_INVOICE_STORNO
// ) {
// continue;
// }
// soll doch mit berechnet werden
$invBruttoSum = floatval($invoice['calculated_sum']);
$invVatSum = floatval($invoice['calculated_vatsum']);
......
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