# ibr-159-ae

Source: https://xmlvalid.com/rules/ibr-159-ae

> Currency exchange rate [BTAE-04] is MUST when then Invoice currency code [IBT-005] is different from 'AED'.

- Level: error
- Rule sets: PINT AE rules (United Arab Emirates) 1.0.4
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `(cbc:DocumentCurrencyCode != "AED" and (exists(//cac:TaxExchangeRate/cbc:CalculationRate))) or cbc:DocumentCurrencyCode = "AED"`

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