VRBL-INV-MY-1p0-50
Basic Info
|
Rule
|
Either BRN in Buyer Party Legal Entity Company ID or one of NRIC, PASSPORT, ARMY in Buyer Party Identification Scheme ID, prefixed by "VRBL:MY:", for example "VRBL:MY:NRIC", must be provided. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party
|
|
Pattern
|
vrbl-invoice-my-1p0 |
|
Severity
|
fatal |
Implementation
boolean(cac:PartyLegalEntity/cbc:CompanyID)
or
(
starts-with(cac:PartyIdentification/cbc:ID/@schemeID, $VRBL-MY-Prefix)
and
contains(
$VRBL-CL-MY-BRN-Alternatives,
concat(
' ',
substring(cac:PartyIdentification/cbc:ID/@schemeID, string-length($VRBL-MY-Prefix) + 1),
' '
)
)
)