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

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-packLayerSeverityApplies to
tdd-ae-1.0.4tdd-aeerrortax-reporting/taxdata
tdd-ae-1.0.3tdd-aeerrortax-reporting/taxdata

Related rules

ibr-tdd-06

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