XV-PL-40
The payments received before the sale (P_15Z, …) exceed the amount due P_15 (…); P_15 less those payments is what remains to be paid (FA(3) information sheet, ZaliczkaCzesciowa).
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
/fa:Faktura/fa:Fa
Test
not(fa:ZaliczkaCzesciowa) or $kind = 'ZAL' or $correction or pl:dec(fa:ZaliczkaCzesciowa/fa:P_15Z) le pl:dec(fa:P_15)
Checked with KSeF FA(3)