VRBL-INV-PEPPOL-PINT-250
Basic Info
|
Rule
|
The value of the Tax Representative Country Identification Code must be contained in ISO 3166 Alpha-2 Country Code [VRBL-CL-PINT-CountryCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166/ |
|
Context
|
/ubl:Invoice/cac:TaxRepresentativeParty/cac:PostalAddress/cac:Country/cbc:IdentificationCode
|
|
Pattern
|
vrbl-invoice-peppol-pint |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-PINT-CountryCode
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-PINT-CountryCode, 1, 1)
)
)
and
contains(
$VRBL-CL-PINT-CountryCode,
concat(
substring($VRBL-CL-PINT-CountryCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-PINT-CountryCode, 1, 1)
)
)
)
)