Evidence Summary
- Create route
/vendas/re/create- List route
/vendas/re- Final view
/vendas/re/view/OTk5OTAwMDE0- Workflow run
receipt-reversal-re-20260519T044549Z- Created reversal
999900014 / RE 9999/14- Evidence file
raw/playwright/workflows/latest-receipt-reversal-re.json
When to Use This
Use Receipt Reversal [RE] when a customer credit note must be liquidated/refunded. In the verified demo, OfficeGest loaded open NC documents as outstanding items; selecting one and paying by cash created a closed RE document and marked the NC as finished/paid.
Step-by-Step
- Open Sales / Receipt Reversal [RE], then click Create Receipts Reversal, or navigate directly to
/vendas/re/create. - Select the customer. The verified run used customer
910, 100 Ouvidos Lda, VAT509031862. - OfficeGest loads pending credit documents into Outstanding documents. The verified row was
NC 9999/58, total74.91, paid0.00, pending74.91. - Select the credit note to reverse/refund and move it to Documents. The verified run called
changeEstadoRecibofor onlyNC 9999/58. - Confirm totals. The verified document showed
74.91as the total value to pay. - Choose a payment method. The verified path used [NUM] Numerário, creating a payment line for
74.91. - Click End, then confirm Are you sure? with OK.
- OfficeGest posts
saveDocumentRecibo, redirects to the RE view, and marks the reversal closed. The verified response was999900014&=&OKDOC&=&&=&OKDOC&=&. - Verify the reversal in
/vendas/reand verify the source credit note in/vendas/nc. The source NC changed fromABR/ Open withValorPago=0toLIQ/ Finished withValorPago=74.91.
Verified Reversal Values
| Field | Value |
|---|---|
| Reversal internal number | 999900014 |
| Visible reversal number | RE 9999/14 |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Reversal status | F, visible as Closed |
| Source document | 999900058 / NC 9999/58 |
| Payment | [NUM] Numerário, value 74.91. |
| Credit note result | Credit note changed to LIQ / Finished, ValorPago=74.91, pending value 0.00. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
loadTabDocumentoRecibo | Loads reversal working table for selected customer with tipoop=RE. |
listaTabDocumentoRecibo&estado=F | Loads pending credit-note rows available for reversal. |
changeEstadoRecibo | Moves selected NC row into the reversal document. The verified payload used temporary table 45951 and listado[]=1. |
payment&option=add | Adds the cash payment line with modopagamento=NUM, total=74.91, and tipoop=RE. |
payment&option=validate | Validates payment coverage before final save; returned valid:true and troco=0. |
saveDocumentRecibo | Saves the reversal into RecibosEst and returns OKDOC. |
DT_List_Documentos&table=RecibosEst | Verifies the RE list using typesaft=RG and tipoop=RE. |
DT_List_Documentos&table=NCred | Verifies the source credit note was settled after RE save. |
Raw evidence: raw/playwright/workflows/receipt-reversal-re-20260519T044549Z.json. Screenshots: assets/screenshots/receipt-reversal-re-20260519T044549Z-01-create-page.png through assets/screenshots/receipt-reversal-re-20260519T044549Z-05-reversal-list.png.