F-LIB381

Invalid VAT TaxAmount - When TaxCategory/ID are 'StandardRated' and TaxableAmount > 0 (…) TaxAmount can't be '(…)' unless calculated vat '(…)' are less then 0.005

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.

Test
cac:TaxCategory/cbc:ID = 'StandardRated' and xs:decimal(cbc:TaxableAmount) > 0 and xs:decimal(cbc:TaxAmount) = 0 and xs:decimal($CalculatedVat) >= 0.005

Checked with Denmark OIOUBL 2.1 Invoice