# F-CRN075

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

> The sum of AllowanceCharge/Amount elements (with ChargeIndicator='false') must equal AllowanceTotalAmount

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

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