All rules · tdd-ae · error

ibr-tdd-30-1

The document currency code (ibt-005) must be an ISO 4217 code.

Draft — not yet reviewed

Why this rule exists

Amounts are aggregated by currency; a currency the authority cannot recognise cannot be converted or summed.

Why it usually happens

How to fix it

Use the three-letter ISO 4217 code; for UAE dirhams that is AED.

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

The official rule

The Document currency code (ibt-005) () MUST be coded according to the code list

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

Schematron test

not($has_dcc) or (not(contains($dcc, ' ')) and contains($cl_currency, concat(' ', $dcc, ' ')))

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-30 · ibr-tdd-31-1

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