PintLint

Rules / IBR-183-AE

The value in Buyer legal registration identifier type should either be 'Commercial/Trade license' or 'Emirates ID' or 'Passport' or 'Cabinet decision' when Buyer legal registration identifier is provided and scheme identifier is '0235' and buyer electronic address is not '1XXXXXXXXX'

The value in Buyer legal registration identifier type [BTAE-16] should either be 'Commercial/Trade license' or 'Emirates ID' or 'Passport' or 'Cabinet decision' when Buyer legal registration identifier (IBT-047) is provided and scheme identifier (IBT-049-1) is '0235' and buyer electronic address (IBT-049) is not '1XXXXXXXXX'.

Fails when this is false

not(cac:PartyLegalEntity/cbc:CompanyID) or not(cbc:EndpointID[@schemeID = "0235"]) or  matches(normalize-space(cbc:EndpointID), "^[19]") or cac:PartyLegalEntity/cbc:CompanyID/@schemeAgencyID = ("TL","CL", "EID", "PAS", "CD")

The schematron test, verbatim. Context: cac:AccountingCustomerParty/cac:Party

Fix

Change the data so the condition below holds. It reads cac:PartyLegalEntity, cbc:CompanyID, cbc:EndpointID, @schemeAgencyID. Paste the invoice into the validator to see the exact element that fails.

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

Check your invoice for this rule