Message

A credit note MUST specify the VAT total amount, if there are VAT line amounts

Context
/ubl:CreditNote
Test
(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']/cbc:TaxAmount) or not(cac:CreditNoteLine/cac:TaxTotal)
Usage
/ ubl:CreditNote / cac:TaxTotal / cbc:TaxAmount