All rules · tdd-ae · error

ibr-tdd-57

The embedded invoice XML (tdt-012) must be a UBL 2.1 Invoice or Credit Note.

Draft — not yet reviewed

Why this rule exists

The authority checks the summary against the original document. Anything other than the original UBL cannot be checked.

Why it usually happens

How to fix it

Embed the UBL Invoice or CreditNote element itself inside cec:ExtensionContent, unescaped.

Right
<pxs:SourceDocument>
  <cec:ExtensionContent>
    <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">…</ubl:Invoice>
  </cec:ExtensionContent>
</pxs:SourceDocument>

The official rule

The Invoice XML (tdt-012) MUST contain either a UBL 2.1 Invoice or a UBL 2.1 Credit Note

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

exists(ubl:Invoice) or exists(cn:CreditNote)

Applied to nodes matching /pxs:TaxData/pxs:ReportedTransaction/pxs:SourceDocument/cec:ExtensionContent

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-23

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