VRBL-INV-RO-1p0-57
Basic Info
| Rule | If the Buyer Country Identification Code is RO, the value of the Buyer Country Subentity must be contained in ISO 3166-2 RO code list [VRBL-CL-RO-ISO-3166]. Allowed values: RO-AB, RO-AG, RO-AR, RO-B, RO-BC, RO-BH, RO-BN, RO-BR, RO-BT, RO-BV, RO-BZ, RO-CJ, RO-CL, RO-CS, RO-CT, RO-CV, RO-DB, RO-DJ, RO-GJ, RO-GL, RO-GR, RO-HD, RO-HR, RO-IF, RO-IL, RO-IS, RO-MH, RO-MM, RO-MS, RO-NT, RO-OT, RO-PH, RO-SB, RO-SJ, RO-SM, RO-SV, RO-TL, RO-TM, RO-TR, RO-VL, RO-VN, RO-VS. |
| Context |
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity
|
| Pattern | vrbl-invoice-ro-1p0 |
| Severity | fatal |
Used Template: CodeList
| Parameter | Value | |
|---|---|---|
| probe | = |
.
|
| codeList | = |
$VRBL-CL-RO-ISO-3166
|
| showValues | = |
true
|
Implementation
(
not(../cac:Country/cbc:IdentificationCode = 'RO')
)
or
(
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-RO-ISO-3166, 1, 1)
)
)
and
contains(
$VRBL-CL-RO-ISO-3166,
concat(
substring($VRBL-CL-RO-ISO-3166, 1, 1),
normalize-space(.),
substring($VRBL-CL-RO-ISO-3166, 1, 1)
)
)
)
)
)