Version v5.11.40-W171
Environment Docker
Hi,
I’m using Invoice Ninja with E-Invoice (Facturae) XML generation, and I’ve found an issue with withholding tax (IRPF -15%) not being included in the XML.
Current tax setup:
IVA (21%) → Created as a manual tax (does NOT appear in the XML).
IRPF (-15%) → Created as a manual tax with a negative value (does NOT appear in the XML).
Tests performed:
1 If I enable “Auto Calculate Taxes”, I can select Spain and the 21% VAT appears correctly in the XML, but there is no option for withholding tax (IRPF -15%).
2 If I use manual taxes (21% VAT and -15% IRPF), the XML does not include either of them.
Expected behavior:
IRPF (-15%) should be included in the XML inside the <TaxesWithheld> section, not ignored.
IVA (21%) should appear in <TaxesOutputs> (which is already working when using auto-calculated taxes).
Is there a way to properly include withholding taxes in the E-Invoice XML?
If not, would it be possible to add an option to classify a tax as a withholding tax so that it appears correctly in the XML?
Thanks in advance!