NFE-1069
Rejeição: Valor da CBS difere do calculado [nItem: …] (vCBS …, calculado …).
In English vCBS is not vBC × pCBS (or pAliqEfet) minus the deferred and refunded amounts (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) or abs(br:dec($cbs/nfe:vCBS) - (round($vBC * $rCBS div 100, 2) - br:dec($cbs/nfe:gDif/nfe:vDif) - br:dec($cbs/nfe:gDevTrib/nfe:vDevTrib))) le 0.01
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol