# F-CRN078

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

> The sum of TaxTotal/RoundingAmount elements must equal PayableRoundingAmount

- Level: error
- Rule sets: OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2
- Context: `doc:CreditNote/cac:LegalMonetaryTotal`
- Test: `(cbc:PayableRoundingAmount) and (../cac:TaxTotal/cbc:RoundingAmount) and (not(format-number(cbc:PayableRoundingAmount, '##.00') = format-number(sum(../cac:TaxTotal/cbc:RoundingAmount), '##.00')))`

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