NFE-871
Rejeição: O campo Meio de Pagamento deve ser preenchido com a opção Sem Pagamento (finNFe …).
In English An adjustment (finNFe 3) or return (finNFe 4) must have the payment method 90, no payment.
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
not($fin = ('3', '4')) or (every $p in $pays satisfies $p/nfe:tPag = '90')
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol