VRBL-STM-MX-1p0-32
Basic Info
|
Rule
|
The value of the Statement Line Statement Line Extension Document Currency Code must be contained in MX Currency code subset 2 [VRBL-CL-MX-CurrencyCode-Subset2]. |
|
Context
|
/ubl:Statement/cac:StatementLine/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementLineExtension/cbc:DocumentCurrencyCode
|
|
Pattern
|
vrbl-payments-mx-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-MX-CurrencyCode-Subset2
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-MX-CurrencyCode-Subset2, 1, 1)
)
)
and
contains(
$VRBL-CL-MX-CurrencyCode-Subset2,
concat(
substring($VRBL-CL-MX-CurrencyCode-Subset2, 1, 1),
normalize-space(.),
substring($VRBL-CL-MX-CurrencyCode-Subset2, 1, 1)
)
)
)
)