# XV-CZ-05

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

> LegalMonetaryTotal/TaxExclusiveAmount (…) must equal the sum of TaxableAmount in the VAT summary (…), in the foreign currency too (ISDOC 6.0.2, A.11).

- Level: error
- Rule sets: ISDOC amounts and identifiers Standard ISDOC 6.0.2
- Context: `/isdoc:Invoice/isdoc:LegalMonetaryTotal`
- Test: `cz:same(cz:dec(isdoc:TaxExclusiveAmount), cz:dec($sub/isdoc:TaxableAmount)) and (not(isdoc:TaxExclusiveAmountCurr) or cz:same(cz:dec(isdoc:TaxExclusiveAmountCurr), cz:dec($sub/isdoc:TaxableAmountCurr)))`

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