All rules · pint-eu · error
PEPPOL-EN16931-R055
The total VAT amount and the total VAT amount in the accounting currency must have the same sign.
Reviewed
Why this rule exists
The two figures describe the same tax in two currencies. Opposite signs mean one of them was derived from a different number, and the discrepancy would be reported to two authorities differently.
Why it usually happens
- A conversion applied to an absolute value, losing the sign on a credit note
How to fix it
Convert the signed amount rather than converting the magnitude and re-applying a sign.
The official rule
Invoice total VAT amount and Invoice total VAT amount in accounting currency MUST have the same operational sign
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
not(cbc:TaxCurrencyCode) or (cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:TaxCurrencyCode)] <= 0 and cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:DocumentCurrencyCode)] <= 0) or (cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:TaxCurrencyCode)] >= 0 and cac:TaxTotal/cbc:TaxAmount[@currencyID=normalize-space(../../cbc:DocumentCurrencyCode)] >= 0)
Applied to nodes matching ubl-creditnote:CreditNote | ubl-invoice:Invoice
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-eu-1.1.1 | pint-eu | error | billing/creditnote, billing/invoice |
Related rules
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator