# NFE-772

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

> Rejeição: Operação Interestadual e UF de destino igual à UF de origem (UF …).

- 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($idDest = '2' and $dest/nfe:enderDest and $destUF = $emitUF and $cnpjDiffers) or ($ufCons[. != $emitUF]) or ($deliveryUF and $deliveryUF != $emitUF and not($pickupUF)) or ($pickupUF and $pickupUF != $destUF and not($deliveryUF)) or ($deliveryUF and $pickupUF and $deliveryUF != $pickupUF)`

In English: An interstate operation (idDest 2) has the receiver in the issuer's state, between different CNPJs, with no delivery or pick-up place in another state.

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