XV-PL-12

P_15 (…) must be the sum of the net amounts P_13_1 to P_13_11 and the tax P_14_1 to P_14_5 (…) (FA(3) information sheet, P_15).

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
Test
($kind = 'UPR' and empty(*[starts-with(local-name(), 'P_13_') or starts-with(local-name(), 'P_14_')])) or pl:near(pl:dec(fa:P_15), $sums, 0.01)

Checked with KSeF FA(3)