Rules
VRBL-INV-ES-B2G-73
Basic Info
| Rule | When the Seller Administrative Center Address Group is not Spanish, Seller Administrative Center Postal Zone + " " + Seller Administrative Center City Name must not exceed 50 characters because of outbound format constraints. |
| Context |
/ubl:Invoice/cac:AccountingSupplierParty/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AccountingSupplierPartyExtension/vrbl:AdministrativeCentre/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
)