# F-INV122

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

> AllowanceTotalAmount is mandatory when AllowanceCharge classes (with ChargeIndicator='false') are present

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2
- Context: `doc:Invoice/cac:LegalMonetaryTotal`
- Test: `count(../cac:AllowanceCharge[cbc:ChargeIndicator='false']) and not(cbc:AllowanceTotalAmount)`

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