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

How to fix it

Set currencyID from one variable everywhere, rather than literal-by-literal.

Wrong
<cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode>
<cbc:PayableAmount currencyID="AED">1000.00</cbc:PayableAmount>
Right
<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

This rule changed between versions. If your invoices passed under an older pack and now fail, this is why.
Rule-packLayerSeverityApplies to
pint-om-1.0.1pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-ae-2026.5pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-eu-1.1.1pint-baseerrorbilling/creditnote, billing/invoice
pint-ae-2026.3pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

ibr-cl-04 · ibr-175-ae

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