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