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
- A local abbreviation such as DHS or Dhs for dirhams
- A currency symbol
- Lower case
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-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