NFE-1156
Rejeição: Data de previsão de entrega não permitida para a finalidade de emissão informada (finNFe …).
In English dPrevEntrega is only allowed in a normal NF-e (finNFe 1) or a return (finNFe 4).
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($ide/nfe:dPrevEntrega) or $fin = ('1', '4')
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol