XV-FI-15
EpiInstructedAmount (…) is not InvoiceTotalVatIncludedAmount - InvoicePaidAmount + InvoiceTotalRoundoffAmount (…), as in the guidelines' calculation example (Finvoice 3.0 guidelines, 14).
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
/Finvoice/InvoiceDetails[matches(InvoiceTypeCode, '^(INV|SEI|REC|RES)') or InvoiceTypeCode = 'TES01']
Test
not(../EpiDetails/EpiPaymentInstructionDetails/EpiInstructedAmount) or fi:same(fi:dec(../EpiDetails/EpiPaymentInstructionDetails/EpiInstructedAmount), fi:dec(InvoiceTotalVatIncludedAmount) - fi:dec(InvoicePaidAmount) + fi:dec(InvoiceTotalRoundoffAmount))
Checked with Finvoice 3.0