VRBL-INV-MX-1p0-34
Basic Info
|
Rule
|
The value of the Document Currency Code must be contained in Document Currency Code [VRBL-CL-MX-DocumentCurrencyCode]. |
|
Context
|
/ubl:Invoice/cbc:DocumentCurrencyCode
|
|
Pattern
|
vrbl-invoice-mx-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-MX-DocumentCurrencyCode
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-MX-DocumentCurrencyCode, 1, 1)
)
)
and
contains(
$VRBL-CL-MX-DocumentCurrencyCode,
concat(
substring($VRBL-CL-MX-DocumentCurrencyCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-MX-DocumentCurrencyCode, 1, 1)
)
)
)
)