NFE-1157
Rejeição: Data de previsão de entrega não permitida para a modalidade de frete informada (modFrete …).
In English dPrevEntrega is not allowed when the receiver carries the goods or there is no transport (modFrete 1, 4 or 9).
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 and nfe:transp/nfe:modFrete = ('1', '4', '9'))
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol