NFE-879
Rejeição: Informado item "Produzido em Escala NÃO Relevante" e não informado CNPJ do Fabricante [nItem: …].
In English A product made in non relevant scale (indEscala N) needs the manufacturer's CNPJ (CNPJFab).
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
string($prod/nfe:indEscala) != 'N' or $prod/nfe:CNPJFab
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol