XV-PL-26

An invoice with sales under the margin scheme (P_13_11 …) must carry the margin scheme note: P_PMarzy 1 with its kind (VAT Act, art. 106e ust. 1 pkt 20 to 22; FA(3) information sheet, P_PMarzy).

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
pl:dec(fa:P_13_11) = 0 or fa:Adnotacje/fa:PMarzy/fa:P_PMarzy = '1'

Checked with KSeF FA(3)