# ibr-175-ae

Source: https://xmlvalid.com/rules/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.

- Level: error
- Rule sets: PINT AE rules (United Arab Emirates) 1.0.4
- 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))`

Validate a document against these rules: https://xmlvalid.com/validate
