NFE-696
Rejeição: Operação com não contribuinte deve indicar operação com consumidor final.
In English An outgoing NF-e to a non-contributor (indIEDest 9), not abroad, must be for a final consumer (indFinal 1).
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($dest/nfe:indIEDest = '9' and $indFinal != '1' and $tpNF = '1' and $idDest != '3')
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol