VRBL-INV-EN16931-CM-344
Basic Info
|
Rule
|
The value of the Charge Amount Currency ID must be contained in Alpha-3 currency [VRBL-CL-EN16931-CurrencyCode]. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cbc:Amount
|
|
Pattern
|
vrbl-invoice-en16931-codesmodel |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@currencyID
|
| codeList |
= |
$VRBL-CL-EN16931-CurrencyCode
|
Implementation
not(boolean(@currencyID))
or
(
(
not(
contains(
normalize-space(@currencyID),
substring($VRBL-CL-EN16931-CurrencyCode, 1, 1)
)
)
and
contains(
$VRBL-CL-EN16931-CurrencyCode,
concat(
substring($VRBL-CL-EN16931-CurrencyCode, 1, 1),
normalize-space(@currencyID),
substring($VRBL-CL-EN16931-CurrencyCode, 1, 1)
)
)
)
)