ibr-186-ae
When the Item type [BTAE-13] is 'Both' then Item classification identifier (ibt-158) and Service accounting code (BTAE-17) must be 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:Item
not(cac:CommodityClassification/cbc:CommodityCode = "B") or (exists(cac:CommodityClassification/cbc:ItemClassificationCode) and exists(cac:AdditionalItemIdentification/cbc:ID))
Checked with PINT UAE Invoice, PINT UAE Credit Note, PINT UAE Self-Billing Invoice, PINT UAE Self-Billing Credit Note