PintLint

Rules / IBR-007-AE

When Invoice Transaction-type code has value 1XXXXXXX (Free trade zone), then Beneficiary ID must be provided

When Invoice Transaction-type code (BTAE-02) has value 1XXXXXXX (Free trade zone), then Beneficiary ID (BTAE-01) must be provided.

Fails

<cbc:ProfileExecutionID>10000000</cbc:ProfileExecutionID>
<!-- no cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID -->

Fix

A free trade zone supply (first digit of cbc:ProfileExecutionID is 1) needs the beneficiary ID in cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID. If it isn't a free-zone supply, set that first digit to 0.

Schematron
Context
/ubl:Invoice | /cn:CreditNote
Test
not(matches(cbc:ProfileExecutionID, "^1[01]{7}$")) or cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID

Official text: When Invoice Transaction-type code (BTAE-02) has value 1XXXXXXX (Free trade zone), then Beneficiary ID (BTAE-01) MUST be provided.

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

Check your invoice for this rule