PintLint

Rules / IBR-CL-01

The document type code must be coded by the invoice and credit note related code lists of UNTDID 1001

The document type code (ibt-003) must be coded by the invoice and credit note related code lists of UNTDID 1001.

Fails

<cbc:InvoiceTypeCode>XYZ</cbc:InvoiceTypeCode>

Fix

Use a code from the list for cbc:InvoiceTypeCode and the other elements this rule covers. Codes are case-sensitive and must not have spaces around them.

Schematron
Context
cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
Test
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 380 480 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 381 ', concat(' ', normalize-space(.), ' ')))))

Official text: The document type code (ibt-003) MUST be coded by the invoice and credit note related code lists of UNTDID 1001.

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check your invoice for this rule