PintLint

Rules / IBR-151-AE

IBR-151-AE error

When Invoice type code is 'Commercial invoice' or 'Credit note', Invoiced item VAT…

When Invoice type code (IBT-003) is 'Commercial invoice' or 'Credit note', Invoiced item VAT category code (IBT-151) should not only contain 'Exempt from VAT' and/or 'Not subject to VAT'.

Fails

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

Fix

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

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not(((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "380") or ((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "381")) or exists((cac:InvoiceLine | cac:CreditNoteLine)/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) != "E" and normalize-space(cbc:ID) != "O"])

Official text: When Invoice type code (IBT-003) is 'Commercial invoice' or 'Credit note', Invoiced item VAT category code (IBT-151) should not only contain 'Exempt from VAT' and/or 'Not subject to VAT'.

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

Check an invoice