NFE-873
Rejeição: Operação com medicamentos e não informado os campos de rastreabilidade [nItem: …].
In English A medicine (med group) needs the batch tracking group (rastro), except in returns, distance sales, future delivery and sales to order.
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/nfe:det
not($prod/nfe:med) or $prod/nfe:rastro or $fin = ('2', '3', '4') or $ide/nfe:indPres = ('2', '3') or $tpNF = '0' or $simple or $cfop = ('5116', '6116', '5922', '6922', '5118', '6118', '5119', '6119', '5120', '6120')
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol