ibr-178-ae
Tax scheme code, if provided in (IBT-031-1) shall not be 'VAT' when Seller tax registration identifier (IBT-032) is provided
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
cac:AccountingSupplierParty/cac:Party
(count(cac:PartyTaxScheme) = 2 and count(cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = "VAT"]) = 1) or count(cac:PartyTaxScheme) < 2
Checked with PINT UAE Invoice, PINT UAE Credit Note, PINT UAE Self-Billing Invoice, PINT UAE Self-Billing Credit Note