ibr-cl-01

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element

Message

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

Context
cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
Test
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 80 82 84 380 383 386 388 393 395 575 623 780 71 102 218 219 331 382 480 553 817 870 875 876 877 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 381 396 532 ', concat(' ', normalize-space(.), ' ')))))

Checked with PINT SG Invoice, PINT SG Credit Note, PINT JP Invoice, PINT A-NZ Invoice, PINT A-NZ Credit Note, PINT MY Invoice, PINT MY Credit Note

Message

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

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(.), ' ')))))

Checked with PINT UAE Invoice, PINT UAE Credit Note

Message

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

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

Checked with PINT UAE Self-Billing Invoice, PINT UAE Self-Billing Credit Note

Message

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

Context
cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
Test
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 389 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 261 ', concat(' ', normalize-space(.), ' ')))))

Checked with PINT MY Self-Billing Invoice, PINT MY Self-Billing Credit Note