[ibr-122-ae]-When Invoice type code (IBT-003) is 'Out of scope of VAT' or 'Credit note related to goods or services', then the Document level allowance VAT category code (IBT-095), Document level charge VAT category code (IBT-102), Invoiced item VAT category code (IBT-151) MUST be either 'Exempt from VAT' and/or 'Not subject to VAT' and/or 'Zero rated'.
ibr-122-ae
/ubl:Invoice | /cn:CreditNote
((cbc:InvoiceTypeCode = "81" or cbc:InvoiceTypeCode = "480") and (//cac:TaxCategory/cbc:ID = "E" or //cac:TaxCategory/cbc:ID = "O" or //cac:TaxCategory/cbc:ID = "Z") and (//cac:ClassifiedTaxCategory/cbc:ID = "E" or //cac:ClassifiedTaxCategory/cbc:ID = "O" or //cac:ClassifiedTaxCategory/cbc:ID = "Z")) or not(cbc:InvoiceTypeCode = "81" or cbc:InvoiceTypeCode = "480")