XV-PL-29

An invoice over PLN 15,000 due (P_15 …) to a taxpayer, with goods or services of Annex 15 (P_12_Zal_15), must carry the split payment note: P_18A 1 (VAT Act, art. 106e ust. 1 pkt 18a; FA(3) information sheet, P_18A).

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
not($pln and fa:FaWiersz/fa:P_12_Zal_15 = '1' and pl:dec(fa:P_15) gt 15000 and ../fa:Podmiot2/fa:DaneIdentyfikacyjne/fa:NIP) or fa:Adnotacje/fa:P_18A = '1'

Checked with KSeF FA(3)