VRBL-INV-SYSTEM-21

Basic Info

Rule If there is a value for Buyer Country Identification Code, the allowed maximum number of characters is 50.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
length = 50

Implementation

not(boolean(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode))
or
string-length(normalize-space((cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode)[1])) <= 50