# F-REM083

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

> The sum of PrepaidPayment/PaidAmount elements must equal PrepaidAmount

- Level: error
- Rule sets: OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Context: `doc:Reminder/cac:LegalMonetaryTotal`
- Test: `cbc:PrepaidAmount and not(format-number(cbc:PrepaidAmount,'##.00') = format-number(sum(../cac:PrepaidPayment/cbc:PaidAmount),'##.00'))`

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