# BR-KSA-87

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

> If the tax exchange rate (KSA-36) exists, then Source Currency Code (KSA-37), Target Currency Code (KSA-38) and Calculation Rate (KSA-39) shall be provided

- Level: warning
- Rule sets: ZATCA e-invoicing rules (Saudi Arabia) SDK 3.4.6
- Context: `/ubl:Invoice/cac:TaxExchangeRate`
- Test: `exists(/ubl:Invoice/cac:TaxExchangeRate/cbc:SourceCurrencyCode) and exists(/ubl:Invoice/cac:TaxExchangeRate/cbc:TargetCurrencyCode) and exists(/ubl:Invoice/cac:TaxExchangeRate/cbc:CalculationRate)`

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