VRBL-INV-EN16931-CM-339
Basic Info
|
Rule
|
The value of the Reduced Tax Subtotal Taxable Amount Currency ID must be contained in Alpha-3 currency [VRBL-CL-EN16931-CurrencyCode]. |
|
Context
|
/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:ReducedTotals/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount
|
|
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)
)
)
)
)