# XV-CZ-01

Source: https://xmlvalid.com/rules/XV-CZ-01

> In the VAT summary, TaxableAmount + TaxAmount must equal TaxInclusiveAmount (… + … is not …), in the foreign currency too (ISDOC 6.0.2, A.10).

- Level: error
- Rule sets: ISDOC amounts and identifiers Standard ISDOC 6.0.2
- Context: `/isdoc:Invoice/isdoc:TaxTotal/isdoc:TaxSubTotal`
- Test: `cz:same(cz:dec(isdoc:TaxableAmount) + cz:dec(isdoc:TaxAmount), cz:dec(isdoc:TaxInclusiveAmount)) and (not(isdoc:TaxableAmountCurr and isdoc:TaxAmountCurr and isdoc:TaxInclusiveAmountCurr) or cz:same(cz:dec(isdoc:TaxableAmountCurr) + cz:dec(isdoc:TaxAmountCurr), cz:dec(isdoc:TaxInclusiveAmountCurr)))`

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