# F-CRN008

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

> There is a LineExtensionAmount where the currencyID does not equal the DocumentCurrencyCode

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cbc:DocumentCurrencyCode`
- Test: `/*/cac:LegalMonetaryTotal/cbc:LineExtensionAmount[@currencyID][@currencyID != string(current())]`

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