ibr-101-ae

Authority name (BTAE-11) MUST be there when Buyer legal registration identifier type (BTAE-16) is Commercial/Trade license.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
cac:AccountingCustomerParty/cac:Party
Test
(cac:PartyLegalEntity/cbc:CompanyID/@schemeAgencyID = "TL" and cac:PartyLegalEntity/cbc:CompanyID/@schemeAgencyName) or not(cac:PartyLegalEntity/cbc:CompanyID/@schemeAgencyID = "TL")

Checked with PINT UAE Invoice, PINT UAE Credit Note