Rules
VRBL-INV-ES-B2G-49
Basic Info
| Rule | When the Seller Postal Address is not Spanish, Seller Postal Zone + " " + Seller City must not exceed 50 characters because of outbound format constraints. |
| Context |
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PostalAddress
|
| Pattern | vrbl-invoice-es-b2g |
| Severity | fatal |
Implementation
(
normalize-space(cac:Country/cbc:IdentificationCode) = 'ES'
or
not(boolean(cbc:PostalZone))
or
not(boolean(cbc:CityName))
)
or
(
string-length(
concat(
normalize-space(cbc:PostalZone),
' ',
normalize-space(cbc:CityName)
)
)
<=
50
)