VAT totals have opposite signs
What it means
The invoice VAT total and the VAT total in accounting currency describe the same tax in two currencies, so they must have the same sign. Opposite signs mean one of them was computed against the wrong base — a genuine bookkeeping error, not a formatting slip.
Can it be fixed automatically?
This needs a decision only the issuer can make. Guessing it would produce an invoice that validates and is wrong, which is worse than one that fails.
How to fix it
Recheck how the accounting-currency VAT total is derived. Flipping a sign automatically would hide a real accounting mistake.
Where it applies
| UBL | /Invoice/cac:TaxTotal/cbc:TaxAmount |
|---|
Check your own invoice
curl -X POST https://einvoice.mgsoft.sk/v1/validate \
-H 'Content-Type: application/xml' \
--data-binary @invoice.xml