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
- Always emitting TaxCurrencyCode, even for AED invoices
How to fix it
Emit TaxCurrencyCode only when the invoice is in a foreign currency.
<cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode> <cbc:TaxCurrencyCode>AED</cbc:TaxCurrencyCode>
<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-pack | Layer | Severity | Applies to |
|---|---|---|---|
| tdd-ae-1.0.4 | tdd-ae | error | tax-reporting/taxdata |
| tdd-ae-1.0.3 | tdd-ae | error | tax-reporting/taxdata |
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