XV-FI-08
A credit note (INV02) always has a zero or negative total; InvoiceTotalVatIncludedAmount is … (Finvoice 3.0 guidelines, 10.5).
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
/Finvoice/InvoiceDetails[matches(InvoiceTypeCode, '^(INV|SEI|REC|RES)') or InvoiceTypeCode = 'TES01']
Test
InvoiceTypeCode != 'INV02' or fi:dec(InvoiceTotalVatIncludedAmount) le 0
Checked with Finvoice 3.0