XV-GR-17

Invoice line: …. The VAT amount … is not the net value … at …% (vatCategory …): ….

warning: reported, still valid

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
inv:invoiceDetails
Test
empty($rate) or abs(gr:dec(inv:vatAmount) - round-half-to-even($net * $rate, 2)) le 0.01 or abs(gr:dec(inv:vatAmount) - round($net * $rate, 2)) le 0.01

Checked with myDATA 2.0.2