All rules · pint-base · error
ibr-126
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 (ibt-005), except for amounts expected to be in Tax accounting currency (ibt-006).
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
ancestor::cac:ItemPriceExtension or @currencyID = //cbc:DocumentCurrencyCode
Applied to nodes matching cbc:Amount | cbc:BaseAmount | cbc:PriceAmount | cbc:LineExtensionAmount | cbc:TaxExclusiveAmount | cbc:TaxInclusiveAmount | cbc:AllowanceTotalAmount | cbc:ChargeTotalAmount | cbc:PrepaidAmount | cbc:PayableRoundingAmount | cbc:PayableAmount | cac:TaxTotal[cbc:TaxAmount/@currencyID=/*/cbc:DocumentCurrencyCode]/cbc:TaxAmount | cac:TaxTotal[cbc:TaxAmount/@currencyID=/*/cbc:DocumentCurrencyCode]/cac:TaxSubtotal/cbc:TaxableAmount | cac:TaxTotal[cbc:TaxAmount/@currencyID=/*/cbc:DocumentCurrencyCode]/cac:TaxSubtotal/cbc:TaxAmount
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.5 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-eu-1.1.1 | pint-base | error | billing/creditnote, billing/invoice |
| pint-ae-2026.3 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-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