Workflow

How to Cancel a Receipt Reversal

Verified end to end. Demo run cancel-receipt-reversal-re-20260520T000325Z created receipt reversal RE 9999/15, cancelled it from the reversal view, and verified source credit note NC 9999/62 returned to open and unpaid.

Evidence Summary

Receipt reversal route
/vendas/re/view/OTk5OTAwMDE1
List route
/vendas/re
Workflow run
cancel-receipt-reversal-re-20260520T000325Z
Cancelled reversal
999900015 / RE 9999/15
Source credit note
999900062 / NC 9999/62
Evidence file
raw/playwright/workflows/latest-cancel-receipt-reversal-re.json

Verified receipt reversal cancellation workflow

When to Use This

Use Cancel on a receipt reversal when the refund/reversal settlement itself must be annulled. In the verified run, OfficeGest kept the RE searchable, changed it from F / Closed to ANU / Canceled, and reopened the credit note that the RE had settled.

Cancellation is irreversible in the OfficeGest confirmation dialog. After cancellation, the source credit note becomes pending again and needs another valid reversal/refund if the customer credit is still to be settled.

Step-by-Step

  1. Open Sales / Receipt Reversal [RE] and open the reversal view. The verified run used RE 9999/15.
  2. Confirm the reversal and source credit note are correct. Before cancellation, RE 9999/15 was F / Closed and source NC 9999/62 was LIQ / Finished with ValorPago=1.97.
  3. Click the red Cancel action in the reversal action bar.
  4. In Reason for Cancellation, select a cancellation reason. The verified run used reason id 1, visible as Erro de faturacao.
  5. Click the red Cancel button inside the reason modal.
  6. Confirm the warning dialog: Are you sure you want to cancel? This irreversible operation.
  7. Search the RE list for the reversal number. The verified row returned estado=ANU, visible state Canceled, total 1.97.
  8. Search the NC list for the source credit note. The verified source returned to ABR / Open, ValorPago=0, and pending value 1.97.

Verified Cancellation Values

FieldValue
Reversal internal number999900015
Visible reversal numberRE 9999/15
Customer[910] 100 Ouvidos Lda, VAT 509031862
Cancellation reasonid_motivo_anulacao=1, Erro de faturacao
RE before cancellationF / Closed, total 1.97.
RE after cancellationANU / Canceled, total 1.97.
Source NC before cancellationNC 9999/62, LIQ / Finished, ValorPago=1.97, pending value 0.00.
Source NC after cancellationNC 9999/62, ABR / Open, ValorPago=0, pending value 1.97.

Backend Calls Observed

Action or endpointPurpose
changeEstadoReciboMoves the source credit note into the reversal documents grid before saving the RE.
payment&option=addAdds the RE cash payment row.
saveDocumentReciboSaves the closed RE and settles the source credit note.
podeAnularDocChecks whether the RE can be cancelled.
deleteDocumentSubmits the RE cancellation with tipoop=RE and the selected cancellation reason.
DT_List_Documentos&table=RecibosEstVerifies the RE list before and after cancellation.
DT_List_Documentos&table=NCredVerifies the source NC before and after cancellation.

Raw evidence: raw/playwright/workflows/cancel-receipt-reversal-re-20260520T000325Z.json. Screenshots: assets/screenshots/cancel-receipt-reversal-re-20260520T000325Z-01-create-page.png through assets/screenshots/cancel-receipt-reversal-re-20260520T000325Z-07-reversal-list.png.