ibr-cl-01-aunz-sb
The document type code (ibt-003) MUST be coded by the self-billed invoice and credit note related code lists of UNTDID 1001.
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.
cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
(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 A-NZ Self-Billing Invoice, PINT A-NZ Self-Billing Credit Note