1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Minor fix

This commit is contained in:
Lars Kusch 2023-03-14 21:26:28 +01:00
parent b1be93828a
commit d5bb25fb35

View File

@ -194,7 +194,7 @@ class CreateXInvoice implements ShouldQueue
$xrechnung->addDocumentTax("S", "VAT", $taxnet_2, $taxamount_2, $invoice->tax_rate2);
}
if ($taxnet_3 > 0) {
$xrechnung->addDocumentTax("CS", "VAT", $taxnet_3, $taxamount_3, $invoice->tax_rate3);
$xrechnung->addDocumentTax("S", "VAT", $taxnet_3, $taxamount_3, $invoice->tax_rate3);
}
$xrechnung->writeFile(explode(".", $client->invoice_filepath($invoice->invitations->first()))[0] . "-xinvoice.xml");