XV-PL-30

SumaObciazen and SumaOdliczen are the sums of the Kwota of the charges (…) and of the deductions (…) (FA(3) information sheet, SumaObciazen).

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
/fa:Faktura/fa:Fa/fa:Rozliczenie
Test
(not(fa:SumaObciazen) or pl:near(pl:dec(fa:SumaObciazen), $charges, 0.001)) and (not(fa:SumaOdliczen) or pl:near(pl:dec(fa:SumaOdliczen), $deductions, 0.001))

Checked with KSeF FA(3)