XV-PL-33

A corrected invoice cannot be issued after its correction: DataWystFaKorygowanej … is later than P_1 … (FA(3) information sheet, DataWystFaKorygowanej).

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
every $d in fa:DaneFaKorygowanej/fa:DataWystFaKorygowanej satisfies not($d castable as xs:date and fa:P_1 castable as xs:date) or xs:date($d) le xs:date(fa:P_1)

Checked with KSeF FA(3)