# ibr-co-14

Source: https://xmlvalid.com/rules/ibr-co-14

> Invoice total Tax amount (ibt-110) = Σ Tax category tax amount (ibt-117).

- Level: error
- Rule sets: PINT Billing rules 1.1.3, PINT Billing rules (as shipped with PINT AE) 1.0.4
- Context: `/ubl:Invoice/cac:TaxTotal | /cn:CreditNote/cac:Taxtotal`
- Test: `(xs:decimal(child::cbc:TaxAmount)= round((sum(cac:TaxSubtotal/xs:decimal(cbc:TaxAmount)) * 10 * 10)) div 100) or not(cac:TaxSubtotal)`

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