VRBL-INV-SYSTEM-10
Basic Info
|
Rule
|
If there is a value for Seller 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:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode
|
| length |
= |
50
|
Implementation
not(boolean(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode))
or
string-length(normalize-space((cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode)[1])) <= 50