PintLint

Rules / IBR-CL-01

IBR-CL-01 error

The document type code must be coded by the invoice and credit note related code lists…

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 value from the code list the rule names. 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 an invoice