VRBL-INV-SA-1p2-74

Basic Info

Rule The Allowance Charge Tax Percent must be from 0.00 to 100.00, with maximum two decimals.Only numerals are accepted, the percentage symbol (%) is not allowed.
Context /ubl:Invoice/cac:AllowanceCharge
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

cac:TaxCategory/cbc:Percent >= 0 and cac:TaxCategory/cbc:Percent <= 100 and string-length(substring-after(cac:TaxCategory/cbc:Percent, '.')) <= 2