NFE-564
Rejeição: Total do Produto / Serviço difere do somatório dos itens (vProd …, itens com indTot 1 …).
In English The products total (ICMSTot/vProd) is not the sum of vProd of the items that count in the total (indTot 1), services under ISSQN apart.
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:total
br:dec($t/nfe:vProd) = br:sum($goods/nfe:prod/nfe:vProd)
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol