NFE-773

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

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.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

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)

Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol