Workflow

How to Create a Receipt

Verified end to end. Demo run receipt-r-20260519T042639Z created receipt R 9999/245 / 999900245 for customer [910] 100 Ouvidos Lda and settled source invoice FT 9999/1666.

Evidence Summary

Create route
/vendas/r/create
List route
/vendas/r
Final view
/vendas/r/view/OTk5OTAwMjQ1
Workflow run
receipt-r-20260519T042639Z
Created receipt
999900245 / R 9999/245
Evidence files
raw/playwright/workflows/latest-receipt-r.json and raw/playwright/workflows/latest-receipt-r-recovery.json

Verified receipt workflow

When to Use This

Use Receipt [R] to settle one or more open customer documents, such as an unpaid sales invoice. The verified path settled the open invoice FT 9999/1666 using [NUM] Numerário.

Step-by-Step

  1. Open Sales / Receipt [R], then click Create Receipt, or navigate directly to /vendas/r/create.
  2. Select the customer. The verified run used customer 910, 100 Ouvidos Lda, VAT 509031862.
  3. OfficeGest loads the customer pending documents into Outstanding documents. The verified pending row was FT 9999/1666, total 1.97, paid 0.00, pending 1.97.
  4. Select the document to settle and move it to Documents. In the verified run, OfficeGest called changeEstadoRecibo for the selected invoice row.
  5. Confirm the totals. The verified receipt showed Total and Value to Pay of 1.97.
  6. Choose a payment method. The verified path used [NUM] Numerário, which created a payment line for 1.97.
  7. Click End.
  8. Confirm the Are you sure? dialog with OK.
  9. OfficeGest posts saveDocumentRecibo, redirects to the receipt view, and marks the receipt closed. The verified save response was 999900245&=&OKDOC&=&&=&OKDOC&=&.
  10. Verify the receipt in /vendas/r and verify the source invoice in /vendas/ft. The source invoice changed from ABR / Open with ValorPago=0 to LIQ / Finished with ValorPago=1.97.

Verified Receipt Values

FieldValue
Receipt internal number999900245
Visible receipt numberR 9999/245
Customer[910] 100 Ouvidos Lda, VAT 509031862
Receipt statusF, visible as Closed
Settled document999901666 / FT 9999/1666
Payment[NUM] Numerário, bank/cash [CXC] Caixa Defeito - Caixa Colaborador Demo, value 1.97.
Invoice resultInvoice changed to LIQ / Finished, ValorPago=1.97, pending value 0.00.

Backend Calls Observed

Action or endpointPurpose
loadTabDocumentoReciboLoads customer receipt document data after customer selection.
listaTabDocumentoRecibo&estado=FLoads outstanding documents still pending payment.
listaTabDocumentoRecibo&estado=TLoads documents selected to pay in the receipt.
changeEstadoReciboMoves selected source document rows from pending to payable. The verified payload used temporary table 45779 and listado[]=1.
payment&option=addAdds the receipt payment line. The verified request used modopagamento=NUM, modobase=N, total=1.97, and tipoop=R.
payment&option=validateChecks payment coverage before final save. The verified response returned valid:true.
saveDocumentReciboSaves the receipt. The verified response returned receipt 999900245 with OKDOC.
payment&option=get_paymentLoads the payment card on the final receipt view.
DT_List_Documentos&table=RecibosVerifies the receipt list using typesaft=RG and tipoop=R.
DT_List_Documentos&table=FactVerifies the source FT invoice was settled after receipt save.

Raw evidence: raw/playwright/workflows/receipt-r-20260519T042639Z.json and recovery verifier raw/playwright/workflows/receipt-r-20260519T042639Z-recovery.json. Screenshots: assets/screenshots/receipt-r-20260519T042639Z-01-create-page.png through assets/screenshots/receipt-r-20260519T042639Z-04-final-view-recovered.png.

Validation Notes