VRBL-INV-MY-1p0-24

Basic Info

Rule Either BRN in Seller Legal Registration ID or one of NRIC, PASSPORT, ARMY in Seller Party Identification Scheme ID, prefixed by "VRBL:MY:", for example "VRBL:MY:NRIC", must be provided.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party
Pattern vrbl-invoice-my-1p0
Severity fatal

Implementation

boolean(cac:PartyLegalEntity/cbc:CompanyID)
or
boolean(
	cac:PartyIdentification/cbc:ID[
		starts-with(@schemeID, $VRBL-MY-Prefix)
		and
		contains(
			$VRBL-CL-MY-BRN-Alternatives,
			concat(
				' ',
				substring(@schemeID, string-length($VRBL-MY-Prefix) + 1),
				' '
			)
		)
	]
)