Message

Each credit note line MUST be categorized with the credit note line VAT category if the credit note has a VAT total amount

Context
//cac:CreditNoteLine
Test
(cac:Item/cac:ClassifiedTaxCategory/cbc:ID) or not(/ubl:CreditNote/cac:TaxTotal/*/*/*/cbc:ID='VAT')
Usage
/ ubl:CreditNote / cac:CreditNoteLine / cac:Item / cac:ClassifiedTaxCategory / cbc:ID