Rules
Basic Info
|
Rule
|
The value of the Statement Line Statement Line Extension Payment Paid Amount Currency Code must be contained in ISO 4217 Alpha-3 currency [VRBL-CL-CurrencyCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/ |
|
Context
|
/ubl:Statement/cac:StatementLine
|
|
Pattern
|
vrbl-statement-pl-paymentidrequest-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementLineExtension/vrbl:Payment/vrbl:PaidAmount/@currencyID
|
| codeList |
= |
$VRBL-CL-CurrencyCode
|
| showValues |
= |
false
|
Implementation
not(boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementLineExtension/vrbl:Payment/vrbl:PaidAmount/@currencyID))
or
(
(
not(
contains(
normalize-space(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementLineExtension/vrbl:Payment/vrbl:PaidAmount/@currencyID),
substring($VRBL-CL-CurrencyCode, 1, 1)
)
)
and
contains(
$VRBL-CL-CurrencyCode,
concat(
substring($VRBL-CL-CurrencyCode, 1, 1),
normalize-space(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementLineExtension/vrbl:Payment/vrbl:PaidAmount/@currencyID),
substring($VRBL-CL-CurrencyCode, 1, 1)
)
)
)
)