NFE-1062
Rejeição: Valor do Diferimento da CBS difere do calculado [nItem: …] (vDif …).
In English The deferred CBS (gCBS/gDif/vDif) is not vBC × pCBS (or pAliqEfet) × pDif (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/nfe:imposto/nfe:IBSCBS/nfe:gIBSCBS
not($cbs/nfe:gDif) or abs(br:dec($cbs/nfe:gDif/nfe:vDif) - round($vBC * $rCBS div 100 * br:dec($cbs/nfe:gDif/nfe:pDif) div 100, 2)) le 0.01
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol