VRBL-INV-SYSTEM-4

Basic Info

Rule If there is a value for Accounting Cost, the allowed maximum number of characters is 500.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cbc:AccountingCost
length = 500

Implementation

not(boolean(cbc:AccountingCost))
or
string-length(normalize-space((cbc:AccountingCost)[1])) <= 500