# F-INV012

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

> There is a LineExtensionAmount for one or more invoice lines where the currencyID does not equal the DocumentCurrencyCode

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

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