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

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.

Wrong
<pxs:DocumentTypeCode>380</pxs:DocumentTypeCode>
Right
<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-packLayerSeverityApplies to
tdd-ae-1.0.4tdd-aeerrortax-reporting/taxdata
tdd-ae-1.0.3tdd-aeerrortax-reporting/taxdata

Related rules

ibr-tdd-22 · ibr-tdd-29

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