BR-NL-7
The rule sets below word this rule differently; each wording is shown with its rule set.
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.
The invoice or credit note type code (cbc:InvoiceTypeCode/cbc:CreditNoteTypeCode) MUST have one of the following values: 380, 381, 384, 389
cbc:InvoiceTypeCode[$s]|cbc:CreditNoteTypeCode[$s]
. = '380' or . = '381' or . = '384' or . = '389'
Checked with Netherlands SI-UBL 2.0 Invoice (NLCIUS), Netherlands SI-UBL 2.0 Credit Note (NLCIUS)
The invoice type code (ram:TypeCode) MUST have one of the following values: 380, 381, 384, 389
/*/rsm:ExchangedDocument/ram:TypeCode[$si]
. = 380 or . = 381 or . = 384 or . = 389
Checked with Netherlands NLCIUS Invoice (CII)