# NFE-773

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

> Rejeição: Operação Interna e UF de destino difere da UF de origem (emitente …, destinatário …).

- 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 = '1' and $indFinal != '1' and $dest/nfe:enderDest and $destUF != $emitUF) or $ufCons = $emitUF or ($deliveryUF = $emitUF and not($pickupUF)) or ($pickupUF = $destUF and not($deliveryUF)) or ($deliveryUF and $deliveryUF = $pickupUF)`

In English: An internal operation (idDest 1) not for a final consumer has the receiver in another state, with no delivery or pick-up place that explains it.

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