# NFE-678

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

> Rejeição: NF referenciada com UF diferente desta NF-e (cUF …).

- 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`
- Test: `not($fin = '2' or $credit = ('03', '04')) or ((every $k in $refs/nfe:refNFe satisfies substring($k, 1, 2) = string($ide/nfe:cUF)) and (every $n in $refs/nfe:refNF satisfies string($n/nfe:cUF) = string($ide/nfe:cUF)))`

In English: The referenced document of a complementary NF-e or credit note is from another state than the issuer.

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