NFE-860

Rejeição: Valor do FCP informado difere de base de cálculo*alíquota [nItem: …] (vFCP …).

In English The FCP (vFCP) is not its base × pFCP (vBC with CST 00, vBCFCP with CST 10, 20, 51, 70 and 90).

error: the document is invalid

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($icms/nfe:vFCP and $fin = '1') or (if ($cst = '00') then br:product($icms/nfe:vFCP, br:dec($icms/nfe:vBC) * br:dec($icms/nfe:pFCP) div 100) else not($cst = ('10', '20', '70', '90', '51')) or br:product($icms/nfe:vFCP, br:dec($icms/nfe:vBCFCP) * br:dec($icms/nfe:pFCP) div 100))

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