All rules · tdd-ae · error
ibr-tdd-29
The invoice type code (ibt-003) is missing from the reported document.
Draft — not yet reviewed
Why this rule exists
The type code distinguishes an invoice from a credit note, which changes the sign of everything reported.
Why it usually happens
- The TDD mapping skips the field when it is optional on some other document type
- The value exists on the invoice but was never copied into the reported document
How to fix it
Copy The invoice type code (ibt-003) from the invoice into pxs:ReportedDocument. It must match the value on the invoice being reported.
Right
<pxs:DocumentTypeCode>380</pxs:DocumentTypeCode>
The official rule
The Invoice type code (ibt-003) element MUST be present
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
exists(pxs:DocumentTypeCode)
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