# F-CRN069

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

> ChargeTotalAmount is mandatory when AllowanceCharge classes (with ChargeIndicator='true') 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 = 'true']) and not(cbc:ChargeTotalAmount)`

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