# NFE-353

Source: https://xmlvalid.com/rules/NFE-353

> Rejeição: Valor do ICMS no CST=51 não corresponde a diferença do ICMS operação e ICMS diferido [nItem: …] (vICMS …).

- Level: error
- Rule sets: SEFAZ authorisation rules of NF-e 4.00 MOC 7.0 Anexo I, NTs up to 2026.010
- Context: `nfe:infNFe/nfe:det`
- Test: `$cst != '51' or not($icms/nfe:vICMSDif or $icms/nfe:vICMS) or br:dec($icms/nfe:vICMS) = br:dec($icms/nfe:vICMSOp) - br:dec($icms/nfe:vICMSDif)`

In English: With ICMS CST 51, vICMS is not vICMSOp minus vICMSDif.

Validate a document against these rules: https://xmlvalid.com/validate
