VRBL-INV-SYSTEM-41

Basic Info

Rule If there is a value for Tax Subtotal Category ID, the allowed maximum number of characters is 50.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID
length = 50

Implementation

not(boolean(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID))
or
string-length(normalize-space((cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID)[1])) <= 50