NFE-1124

Rejeição: Valor do Crédito Presumido da CBS não pode ser superior a vProd [nItem: …].

In English The presumed CBS credit on goods bought from individuals for resale (cCredPres 4) is above vProd.

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/nfe:imposto/nfe:IBSCBS/nfe:gCredPresOper
Test
not($four and nfe:gCBSCredPres/nfe:vCredPres) or br:dec(nfe:gCBSCredPres/nfe:vCredPres) le $vProd

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