PintLint

Rules / IBR-116-AE

IBR-116-AE error

When Invoice transaction-type code should have 'Standard rate additional VAT'

When Invoice transaction-type code (BTAE-02) has value XX1XXXXX (Margin scheme), then the tax category code (IBT-151) should have 'Standard rate additional VAT'.

Fails

<cbc:ProfileExecutionID>00100000</cbc:ProfileExecutionID>
<!-- the data this flag requires is missing or wrong -->

Fix

Transaction type 00100000 switches this rule on. Either add what the rule asks for, or, if the flag was set by mistake, set it back to 0.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not(matches(cbc:ProfileExecutionID, "^[01]{2}1[01]{5}$")) or not((//cac:TaxCategory/cbc:ID | //cac:ClassifiedTaxCategory/cbc:ID)[normalize-space(.) != "N"])

Official text: When Invoice transaction-type code (BTAE-02) has value XX1XXXXX (Margin scheme), then the tax category code (IBT-151) should have 'Standard rate additional VAT'.

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

Check an invoice