Evidence Summary
- Route
/vendas/r/create- Final receipt
999900248 / R 9999/248- Settled invoice
999901702 / FT 9999/1702- Customer
[910] 100 Ouvidos Lda- Payment
[NUM] Numerario2.00against total1.97- Change
troco:0.03- Evidence file
raw/playwright/workflows/latest-receipt-r-overpayment.json
When to Use This
Use this when a customer pays a receipt in cash with more money than the selected invoice balance. OfficeGest accepts the receipt when the payment is greater than the value to pay and calculates the difference as change.
Step-by-Step
- Open Sales / Receipt [R], or navigate to
/vendas/r/create. - Select the customer. The verified run used
[910] 100 Ouvidos Lda. - In Outstanding documents, select the invoice to settle and move it into Documents. The verified run moved
FT 9999/1702. - Confirm the value to pay. The verified receipt total was
1.97. - Add [NUM] Numerario as the payment method and enter the cash received. The verified run entered
2.00. - Validate the payment. OfficeGest returned
valid:truewithtroco:0.03. - Click End and confirm the Are you sure? dialog.
- Verify the receipt list shows the receipt closed, and verify the source invoice is
LIQ/ Finished with pending value0.00.
Verified Behavior
| Check | Observed result |
|---|---|
| Source document | FT 9999/1702 was moved from Outstanding documents to Documents. |
| Payment row | payment&option=add created NUM 2.00. |
| Payment validation | payment&option=validate returned valid:true and troco:0.03. |
| Final save | saveDocumentRecibo returned OKDOC and redirected to /vendas/r/view/OTk5OTAwMjQ4. |
| Receipt list result | R 9999/248 was F / Closed with total 1.97. |
| Invoice settlement | FT 9999/1702 became LIQ / Finished with ValorPago=1.97 and pending value 0.00. |
| Important distinction | The cash received was 2.00, but the receipt and source invoice paid value stayed equal to the invoice total, 1.97; the extra 0.03 is change. |
Raw evidence: raw/playwright/workflows/receipt-r-overpayment-20260519T231638Z.json. Screenshots: assets/screenshots/receipt-r-overpayment-20260519T231638Z-01-create-page.png through assets/screenshots/receipt-r-overpayment-20260519T231638Z-06-receipt-list.png.