All rules · tdd-ae · error
ibr-tdd-06
The TDD document type code (tdt-006) must be one of S, R, W or F. F marks a failed transmission.
Draft — not yet reviewed
Why this rule exists
The type code tells the authority what kind of report this is. Other rules depend on it: a failed-transmission (F) report is the only kind allowed to omit the reported document.
Why it usually happens
- Putting the invoice's type code (380, 381, 389) in the TDD header instead of the TDD's own code
How to fix it
The TDD has two DocumentTypeCode elements. The header one takes S, R, W or F; the invoice type code goes inside pxs:ReportedDocument.
<pxs:DocumentTypeCode>380</pxs:DocumentTypeCode>
<pxs:DocumentTypeCode>S</pxs:DocumentTypeCode>
The official rule
The Tax Data Document type code (tdt-006) () 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(contains($dtc, ' ')) and contains($cl_dtc, concat(' ', $dtc, ' '))Applied to nodes matching /pxs:TaxData
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