# BR-KSA-88

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

> If exist, Source Currency Code (KSA-37) must be the same as Invoice currency code (BT-5)

- 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:SourceCurrencyCode) and (/ubl:Invoice/cac:TaxExchangeRate/cbc:SourceCurrencyCode !='')`

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