# BR-KSA-89

Source: https://xmlvalid.com/rules/BR-KSA-89

> If exists, Target Currency Code (KSA-38) must be the same as the Tax currency code (BT-6)

- Level: error
- Rule sets: ZATCA e-invoicing rules (Saudi Arabia) SDK 3.4.6
- Context: `/ubl:Invoice/cac:TaxExchangeRate`
- Test: `matches(normalize-space(//cbc:DocumentCurrencyCode), /ubl:Invoice/cac:TaxExchangeRate/cbc:TargetCurrencyCode) and (/ubl:Invoice/cac:TaxExchangeRate/cbc:TargetCurrencyCode !='')`

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