XV-PL-35

Line numbers repeat (NrWierszaFa or NrWierszaZam); each line has its own number, a line before a correction (StanPrzed) the number of the line it corrects (FA(3) information sheet, NrWierszaFa).

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
count(fa:FaWiersz[not(fa:StanPrzed)]) = count(distinct-values(fa:FaWiersz[not(fa:StanPrzed)]/fa:NrWierszaFa)) and count(fa:FaWiersz[fa:StanPrzed]) = count(distinct-values(fa:FaWiersz[fa:StanPrzed]/fa:NrWierszaFa)) and count(fa:Zamowienie/fa:ZamowienieWiersz[not(fa:StanPrzedZ)]) = count(distinct-values(fa:Zamowienie/fa:ZamowienieWiersz[not(fa:StanPrzedZ)]/fa:NrWierszaZam)) and count(fa:Zamowienie/fa:ZamowienieWiersz[fa:StanPrzedZ]) = count(distinct-values(fa:Zamowienie/fa:ZamowienieWiersz[fa:StanPrzedZ]/fa:NrWierszaZam))

Checked with KSeF FA(3)