VRBL-INV-PEPPOL-PINT-215
Basic Info
|
Rule
|
The value of the Withholding Tax Subtotal Amount Currency ID must be contained in ISO 4217 Alpha-3 currency [VRBL-CL-PINT-CurrencyCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/ |
|
Context
|
/ubl:Invoice/cac:WithholdingTaxTotal/cac:TaxSubtotal/cbc:TaxAmount
|
|
Pattern
|
vrbl-invoice-peppol-pint |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@currencyID
|
| codeList |
= |
$VRBL-CL-PINT-CurrencyCode
|
Implementation
not(boolean(@currencyID))
or
(
(
not(
contains(
normalize-space(@currencyID),
substring($VRBL-CL-PINT-CurrencyCode, 1, 1)
)
)
and
contains(
$VRBL-CL-PINT-CurrencyCode,
concat(
substring($VRBL-CL-PINT-CurrencyCode, 1, 1),
normalize-space(@currencyID),
substring($VRBL-CL-PINT-CurrencyCode, 1, 1)
)
)
)
)