ibr-175-ae
When Invoice currency code [IBT-005] is other than 'AED' and Tax accounting currency [IBT-006] is 'AED', then the value in Invoice total VAT amount in tax accounting currency [IBT-111] and Invoice (or CreditNote) total amount with VAT in AED [BTAE-20] MUST be present.
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
/ubl:Invoice | /cn:CreditNote
Test
cbc:DocumentCurrencyCode = "AED" or (cbc:DocumentCurrencyCode != "AED" and cbc:TaxCurrencyCode = "AED" and exists(cac:TaxTotal/cbc:TaxAmount[@currencyID = "AED"]) and exists(cac:AdditionalDocumentReference[cbc:DocumentTypeCode = "aedtotal-incl-vat"]/cbc:DocumentDescription))
Checked with PINT UAE Invoice, PINT UAE Credit Note