NFE-528
Rejeição: Valor do ICMS difere do produto BC e Alíquota [nItem: …] (vICMS …, vBC × pICMS …).
In English In a normal NF-e with ICMS CST 00, 10, 20 or 70, vICMS is not vBC × pICMS rounded to two decimals (R$ 0.01 tolerance).
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($cst = ('00', '10', '20', '70') and $fin = '1') or br:product($icms/nfe:vICMS, br:dec($icms/nfe:vBC) * br:dec($icms/nfe:pICMS) div 100)
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol