PintLint

Rules / IBR-176-AE

IBR-176-AE error

When Invoice transaction type code is XXXXX1XX (Disclosed agent billing), then the…

When Invoice transaction type code [BTAE-02] is XXXXX1XX (Disclosed agent billing), then the value in field Seller VAT Identifier [IBT-031] and Principal ID [BTAE-14] should not be the same.

Fails

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

Fix

Transaction type 00000100 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
(matches(cbc:ProfileExecutionID, "^[01]{5}1[01]{2}$") and cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID !=  cac:SellerSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID) or not(matches(cbc:ProfileExecutionID, "^[01]{5}1[01]{2}$"))

Official text: When Invoice transaction type code [BTAE-02] is XXXXX1XX (Disclosed agent billing), then the value in field Seller VAT Identifier [IBT-031] and Principal ID [BTAE-14] should not be the same.

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

Check an invoice