All rules · pint-eu · error
PEPPOL-EN16931-R053
Exactly one tax total containing subtotals must be provided.
Reviewed
Why this rule exists
Two tax totals are ambiguous: the receiver cannot tell which is authoritative, and the two usually disagree by a rounding difference. One total with one subtotal per category is the only unambiguous shape.
Why it usually happens
- Emitting a second TaxTotal for the accounting-currency amount instead of adding it to the first
- A loop that emits one TaxTotal per category rather than one TaxSubtotal per category
How to fix it
Emit one TaxTotal with subtotals; if you also report in an accounting currency, use the second TaxTotal without subtotals for it.
<cac:TaxTotal><cbc:TaxAmount currencyID="EUR">50.00</cbc:TaxAmount>…</cac:TaxTotal> <cac:TaxTotal><cbc:TaxAmount currencyID="EUR">50.00</cbc:TaxAmount>…</cac:TaxTotal>
<cac:TaxTotal> <cbc:TaxAmount currencyID="EUR">50.00</cbc:TaxAmount> <cac:TaxSubtotal>…</cac:TaxSubtotal> </cac:TaxTotal>
The official rule
Only one tax total with tax subtotals MUST be provided.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
count(cac:TaxTotal[cac:TaxSubtotal]) = 1
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