PintLint

Rules / IBR-123-AE

IBR-123-AE error

Line VAT Information (IBG - 30) must be there and can occur maximum once except in case…

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

Fails

<cbc:InvoiceTypeCode>81</cbc:InvoiceTypeCode>
<!-- the data this document type requires is missing or wrong -->

Fix

Type code 81 triggers this rule. Add what it asks for, or check the type code is right.

Schematron
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")

Official text: 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'.

Official · PINT AE (UAE) rules. Severity: error. Runs on UBL XML.

Check an invoice