PintLint

Rules / IBR-137-AE

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

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

Fails

<cbc:ProfileExecutionID>00000100</cbc:ProfileExecutionID>
<!-- no cac:SellerSupplierParty -->

Fix

Disclosed agent billing (sixth digit of cbc:ProfileExecutionID is 1) needs the principal's ID in cac:SellerSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID. If you aren't billing as a disclosed agent, set that digit 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 your invoice for this rule