All rules · tdd-ae · error

ibr-tdd-31

When the accounting currency code (ibt-006) is given, it must differ from the document currency. Leave it out when they are the same.

Draft — not yet reviewed

Why this rule exists

The accounting currency only exists to state tax in a second currency. Repeating the document currency adds a second, identical total that must then be reconciled.

Why it usually happens

How to fix it

Emit TaxCurrencyCode only when the invoice is in a foreign currency.

Wrong
<cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>
<cbc:TaxCurrencyCode>AED</cbc:TaxCurrencyCode>
Right
<cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>

The official rule

The Accounting currency code (ibt-006) () MUST be different from Document currency code (ibt-005) ()

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

not($has_tcc) or $dcc != $tcc

Applied to nodes matching /pxs:TaxData/pxs:ReportedTransaction/pxs:ReportedDocument

Rule-pack versions

Rule-packLayerSeverityApplies to
tdd-ae-1.0.4tdd-aeerrortax-reporting/taxdata
tdd-ae-1.0.3tdd-aeerrortax-reporting/taxdata

Related rules

ibr-tdd-31-1 · ibr-tdd-36

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