VRBL-INV-SA-1p2-114
Basic Info
| Rule | The Invoice Line 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:InvoiceLine
|
| Pattern | vrbl-invoice-sa-1p2 |
| Severity | fatal |
Implementation
cac:Item/cac:ClassifiedTaxCategory/cbc:Percent >= 0 and cac:Item/cac:ClassifiedTaxCategory/cbc:Percent <= 100 and string-length(substring-after(cac:Item/cac:ClassifiedTaxCategory/cbc:Percent, '.')) <= 2