# NFE-538

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

> Rejeição: Total do IPI difere do somatório dos itens (vIPI …, itens …).

- 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:total`
- Test: `br:dec($t/nfe:vIPI) = br:sum($det/nfe:imposto/nfe:IPI/nfe:IPITrib/nfe:vIPI)`

In English: The IPI total (vIPI) is not the sum of the items'.

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