VRBL-TXS-FR-1p0-16
Basic Info
|
Rule
|
The value of the Statement Extension Transactions Summary Transactions Tax Total Amount Currency ID must be contained in Currency Code for collected amount (France) [VRBL-CL-FR-CurrencyCode]. Allowed values: EUR. |
|
Context
|
/ubl:Statement/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:StatementExtension/vrbl:TransactionsSummary/vrbl:Transactions/cac:TaxTotal/cbc:TaxAmount
|
|
Pattern
|
vrbl-txs-fr-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@currencyID
|
| codeList |
= |
$VRBL-CL-FR-CurrencyCode
|
| showValues |
= |
true
|
Implementation
not(boolean(@currencyID))
or
(
(
not(
contains(
normalize-space(@currencyID),
substring($VRBL-CL-FR-CurrencyCode, 1, 1)
)
)
and
contains(
$VRBL-CL-FR-CurrencyCode,
concat(
substring($VRBL-CL-FR-CurrencyCode, 1, 1),
normalize-space(@currencyID),
substring($VRBL-CL-FR-CurrencyCode, 1, 1)
)
)
)
)