All rules · pint-eu · error
PEPPOL-EN16931-R051
Every currencyID attribute in the document must match the invoice currency code — except the VAT total in the tax accounting currency.
Reviewed
Why this rule exists
A document with mixed currencies is unreconcilable: the totals cannot be summed and the tax cannot be assessed. The one permitted exception exists because UAE VAT is always accounted for in AED.
Why it usually happens
- Hard-coding currencyID="AED" on amount elements while DocumentCurrencyCode comes from data
- Copying a template where one element retained the currency of the original example
- Emitting the tax amount in AED without also setting TaxCurrencyCode
How to fix it
Set currencyID from one variable everywhere, rather than literal-by-literal.
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode> <cbc:PayableAmount currencyID="AED">1000.00</cbc:PayableAmount>
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode> <cbc:PayableAmount currencyID="USD">1000.00</cbc:PayableAmount>
The official rule
All currencyID attributes must have the same value as the invoice currency code (BT-5), except for the invoice total VAT amount in accounting currency (BT-111).
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
@currencyID = $documentCurrencyCode
Applied to nodes matching cbc:Amount | cbc:BaseAmount | cbc:PriceAmount | cac:TaxTotal[cac:TaxSubtotal]/cbc:TaxAmount | cac:TaxSubtotal/cbc:TaxAmount | cbc:TaxableAmount | cbc:LineExtensionAmount | cbc:TaxExclusiveAmount | cbc:TaxInclusiveAmount | cbc:AllowanceTotalAmount | cbc:ChargeTotalAmount | cbc:PrepaidAmount | cbc:PayableRoundingAmount | cbc:PayableAmount
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