VRBL-INV-SYSTEM-51

Basic Info

Rule If there is a value for Payee Financial Account ID, the allowed maximum number of characters is 100.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID
length = 100

Implementation

not(boolean(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID))
or
string-length(normalize-space((cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID)[1])) <= 100