ibr-123-ae

Line VAT Information (IBG - 30) MUST be there and can occur maximum once except in case when invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services'.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element

Context
cac:InvoiceLine | cac:CreditNoteLine
Test
((../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81" or ../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480") and count(cac:Item/cac:ClassifiedTaxCategory) = 1) or not(../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81" or ../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480")

Checked with PINT UAE Invoice, PINT UAE Credit Note, PINT UAE Self-Billing Invoice, PINT UAE Self-Billing Credit Note