NFE-850
Rejeição: Data de vencimento da parcela não informada ou menor que a Data de vencimento da parcela anterior.
In English An installment falls due before the previous one.
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.
nfe:infNFe
every $i in 2 to count($dups) satisfies not(exists(br:date($dups[$i]/nfe:dVenc)) and exists(br:date($dups[$i - 1]/nfe:dVenc))) or br:date($dups[$i]/nfe:dVenc) ge br:date($dups[$i - 1]/nfe:dVenc)
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol