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

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.

Wrong
<cac:TaxTotal><cbc:TaxAmount currencyID="EUR">50.00</cbc:TaxAmount>…</cac:TaxTotal>
<cac:TaxTotal><cbc:TaxAmount currencyID="EUR">50.00</cbc:TaxAmount>…</cac:TaxTotal>
Right
<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-packLayerSeverityApplies to
pint-eu-1.1.1pint-euerrorbilling/creditnote, billing/invoice

Related rules

aligned-ibrp-s-01 · ibr-co-14

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