All rules · tdd-ae · error
ibr-tdd-22
The reported document (tdg-02) is missing. It may only be left out when the TDD type code is F (failed transmission).
Draft — not yet reviewed
Why this rule exists
The reported document is the summary the authority actually records. A report of a sent invoice without it carries nothing to record.
Why it usually happens
- Treating a failed transmission as a normal report, or the other way round
- Building the report before the invoice summary was available
How to fix it
Include pxs:ReportedDocument for every type code except F. For a failed transmission, set the header type code to F.
The official rule
The REPORTED DOCUMENT (tdg-02) MUST be present, except when the Tax Data Document type code (tdt-006) is 'F' (Failed transmission)
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
exists(pxs:ReportedDocument) or $isFailedTransmission
Applied to nodes matching /pxs:TaxData/pxs:ReportedTransaction
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