# NFE-870

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

> Rejeição: Data de validade incompatível com data de fabricação [nItem: …].

- 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: `every $r in $prod/nfe:rastro satisfies not(exists(br:date($r/nfe:dVal)) and exists(br:date($r/nfe:dFab))) or br:date($r/nfe:dVal) ge br:date($r/nfe:dFab)`

In English: A batch's expiry date (dVal) is before its date of manufacture (dFab).

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