VRBL-INV-MY-1p0-43
Basic Info
|
Rule
|
The value of the Seller Industry Classification Code must be contained in MSIC Codes [VRBL-CL-MSIC-Codes] (prefixed by 'VRBL:MY:'). For more information visit: https://sdk.myinvois.hasil.gov.my/codes/msic-codes/ |
|
Context
|
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:IndustryClassificationCode
|
|
Pattern
|
vrbl-invoice-my-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-MY-Prefix:$VRBL-CL-MSIC-Codes
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-MY-Prefix)) = $VRBL-MY-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-MY-Prefix),
substring($VRBL-CL-MSIC-Codes, 1, 1)
)
)
and
contains(
$VRBL-CL-MSIC-Codes,
concat(
substring($VRBL-CL-MSIC-Codes, 1, 1),
substring-after(normalize-space(.), $VRBL-MY-Prefix),
substring($VRBL-CL-MSIC-Codes, 1, 1)
)
)
)
)