XV-CZ-03
In the VAT summary, DifferenceTaxableAmount + DifferenceTaxAmount must equal DifferenceTaxInclusiveAmount, in the foreign currency too (ISDOC 6.0.2, A.10).
error: the document is invalid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Context
/isdoc:Invoice/isdoc:TaxTotal/isdoc:TaxSubTotal
Test
cz:same(cz:dec(isdoc:DifferenceTaxableAmount) + cz:dec(isdoc:DifferenceTaxAmount), cz:dec(isdoc:DifferenceTaxInclusiveAmount)) and (not(isdoc:DifferenceTaxableAmountCurr and isdoc:DifferenceTaxAmountCurr and isdoc:DifferenceTaxInclusiveAmountCurr) or cz:same(cz:dec(isdoc:DifferenceTaxableAmountCurr) + cz:dec(isdoc:DifferenceTaxAmountCurr), cz:dec(isdoc:DifferenceTaxInclusiveAmountCurr)))
Checked with ISDOC 6.0.2