Message

An invoice MUST specify the VAT total amount, if there are VAT line amounts

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