PintLint

Rules / IBR-157-AE

Invoice Transaction-type code cannot be XXX1XXXX (Summary invoice) or X1XXXXXX (Deemed supply) or XX1XXXXX (Margin scheme) when the invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services'

Invoice Transaction-type code (BTAE-02) cannot be XXX1XXXX (Summary invoice) or X1XXXXXX (Deemed supply) or XX1XXXXX (Margin scheme) when the invoice type code (IBT-003) is 'Out of scope of VAT' or 'Credit note related to goods or services'.

Fails

<cbc:InvoiceTypeCode>480</cbc:InvoiceTypeCode>
<cbc:ProfileExecutionID>01000000</cbc:ProfileExecutionID>

Fix

Out-of-scope invoices (480) and credit notes 81 can't be deemed supplies, margin scheme or summary invoices: set the second, third and fourth digits of cbc:ProfileExecutionID to 0. If one of those really applies, VAT is in play and the type code should be 380 or 381.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not(((cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480" or (cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81") and  matches(cbc:ProfileExecutionID, "^[01]{2}1[01]{5}$|^[01]1[01]{6}$|^[01]{3}1[01]{4}$"))

Official text: Invoice Transaction-type code (BTAE-02) cannot be XXX1XXXX (Summary invoice) or X1XXXXXX (Deemed supply) or XX1XXXXX (Margin scheme) when the invoice type code (IBT-003) 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 your invoice for this rule