# ibr-153-ae

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

> When the Tax accounting currency (IBT-006) is set to AED and the invoice currency code (IBT-005) differs from AED, the source currency must be designated as the invoice currency code (IBT-005), and the target currency must be specified as the Tax accounting currency (IBT-006), provided that the currency exchange rate (BTAE-04) is available

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

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