# BR-KSA-90

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

> If exists, the allowed maximum number of digits for the Tax Exchange Rate (KSA-39) is 14.

- 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
