XV-PL-39
An advance invoice documenting several payments has P_15 (…) equal to the sum of the payments P_15Z (…) (FA(3) information sheet, ZaliczkaCzesciowa).
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 != 'ZAL' or not(fa:ZaliczkaCzesciowa) or pl:near(pl:dec(fa:P_15), pl:dec(fa:ZaliczkaCzesciowa/fa:P_15Z), 0.01)
Checked with KSeF FA(3)