NFE-346

Rejeição: Somatório das quantidades informadas na Exportação Indireta não corresponde a quantidade total do item [nItem: …] (qExport …, qCom …; a critério da UF).

In English The quantities of the indirect export (qExport) do not add up to the item's qCom (a check some states make).

warning: reported, still valid

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.

Context
nfe:infNFe/nfe:det
Test
not($prod/nfe:detExport/nfe:exportInd) or br:sum($prod/nfe:detExport/nfe:exportInd/nfe:qExport) = br:dec($prod/nfe:qCom)

Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol