# F-CRN015

Source: https://xmlvalid.com/rules/F-CRN015

> One PricingExchangeRate class must be present when PricingCurrencyCode element is used

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cbc:PricingCurrencyCode`
- Test: `count(/*/cac:PricingExchangeRate) != 0`

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