IBR-122-AE

[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'.

About

ID
ibr-122-ae
Flag
fatal
Context
/ubl:Invoice | /cn:CreditNote
Test
not((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81" or (cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480") or (every $cat in (//cac:TaxCategory/cbc:ID | //cac:ClassifiedTaxCategory/cbc:ID) satisfies normalize-space($cat) = ("E","O","Z"))