Message

Credit Note total without VAT MUST be equal to the sum of VAT category taxable amounts

Context
/ubl:CreditNote
Test
((cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']/cbc:TaxAmount) and (round(xs:decimal(sum(cac:TaxTotal//cac:TaxSubtotal/cbc:TaxableAmount)) *10 * 10) div 100 = ((xs:decimal(cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount))))) or not((cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']))
Usage
/ ubl:CreditNote / cac:TaxTotal / cac:TaxSubtotal / cbc:TaxableAmount