# F-CRN068

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

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

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

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