# XV-CZ-07

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

> LegalMonetaryTotal/AlreadyClaimedTaxExclusiveAmount must equal the sum of AlreadyClaimedTaxableAmount 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:AlreadyClaimedTaxExclusiveAmount), cz:dec($sub/isdoc:AlreadyClaimedTaxableAmount)) and (not(isdoc:AlreadyClaimedTaxExclusiveAmountCurr) or cz:same(cz:dec(isdoc:AlreadyClaimedTaxExclusiveAmountCurr), cz:dec($sub/isdoc:AlreadyClaimedTaxableAmountCurr)))`

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