BR-NL-7

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 invoice or credit note type code (cbc:InvoiceTypeCode/cbc:CreditNoteTypeCode) MUST have one of the following values: 380, 381, 384, 389

Context
cbc:InvoiceTypeCode[$s]|cbc:CreditNoteTypeCode[$s]
Test
. = '380' or . = '381' or . = '384' or . = '389'

Checked with Netherlands SI-UBL 2.0 Invoice (NLCIUS), Netherlands SI-UBL 2.0 Credit Note (NLCIUS)

Message

The invoice type code (ram:TypeCode) MUST have one of the following values: 380, 381, 384, 389

Context
/*/rsm:ExchangedDocument/ram:TypeCode[$si]
Test
. = 380 or . = 381 or . = 384 or . = 389

Checked with Netherlands NLCIUS Invoice (CII)