# F-INV132

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

> The sum of TaxTotal/RoundingAmount elements must equal PayableRoundingAmount

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2
- Context: `doc:Invoice/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
