Message

A buyer VAT identifier MUST be present if the VAT category code is reverse VAT

Context
/ubl:CreditNote
Test
(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or not(cac:TaxTotal/*/*/cbc:ID = 'AE')