All rules · tdd-ae · error
ibr-tdd-37
The reported document must have exactly one pxs:MonetaryTotal.
Draft — not yet reviewed
Why this rule exists
The monetary total carries the amount the tax was charged on. A report without it has tax with nothing to relate it to.
Why it usually happens
- Using the invoice's cac:LegalMonetaryTotal instead of the TDD's pxs:MonetaryTotal
- Leaving it out entirely
How to fix it
Emit one pxs:MonetaryTotal (TDD namespace, not cac) with the total without VAT.
Wrong
<cac:LegalMonetaryTotal>…</cac:LegalMonetaryTotal>
Right
<pxs:MonetaryTotal> <cbc:TaxExclusiveAmount currencyID="AED">10643.29</cbc:TaxExclusiveAmount> </pxs:MonetaryTotal>
The official rule
Exactly 1 /pxs:MonetaryTotal element must be present but found elements
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
$mtCount = 1
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