PintLint

Rules / IBR-137-AE

IBR-137-AE error

Principal ID is must, where Invoice transaction type code is XXXXX1XX (Disclosed Agent…

Principal ID (BTAE-14) is must, where Invoice transaction type code [BTAE-02] is XXXXX1XX (Disclosed Agent billing).

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:SellerSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID) or not(matches(cbc:ProfileExecutionID, "^[01]{5}1[01]{2}$"))

Official text: Principal ID (BTAE-14) is MUST, where Invoice transaction type code [BTAE-02] is XXXXX1XX (Disclosed Agent billing).

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

Check an invoice