VRBL-INV-SYSTEM-43

Basic Info

Rule If there is a value for Legal Monetary Total Tax Exclusive Amount Currency ID, the allowed maximum number of characters is 25.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount/@currencyID
length = 25

Implementation

not(boolean(cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount/@currencyID))
or
string-length(normalize-space((cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount/@currencyID)[1])) <= 25