VRBL-INV-SA-1p2-109
Basic Info
| Rule | The Invoice Line Tax Subtotal Taxable Amount and Invoice Line Tax Subtotal Amount must have a maximum two decimals. |
| Context |
/ubl:Invoice/cac:InvoiceLine
|
| Pattern | vrbl-invoice-sa-1p2 |
| Severity | fatal |
Implementation
count(cac:DocumentReference/cbc:ID) = 0 or ((string-length(substring-after(cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount, '.')) <= 2 and string-length(substring-after(cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount, '.')) <= 2))