# F-INV127

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

> The sum of TaxTotal/TaxSubtotal/TaxAmount elements must equal TaxExclusiveAmount

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2
- Context: `doc:Invoice/cac:LegalMonetaryTotal`
- Test: `cbc:TaxExclusiveAmount and not(format-number(cbc:TaxExclusiveAmount,'##.00') = format-number(sum(../cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount),'##.00'))`

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