Evidence Summary
- Route
/vendas/r/create- Final receipt
999900249 / R 9999/249- Settled invoice
999901705 / FT 9999/1705- Customer
[910] 100 Ouvidos Lda- Evidence file
raw/playwright/workflows/latest-receipt-r-fix-partial-payment.json
When to Use This
Use this when OfficeGest keeps the receipt Payment modal open because the payment row is below the selected invoice balance. If the payment method is correct, edit the existing row value instead of deleting and recreating the row.
Step-by-Step
- Stay in the Payment modal after the warning.
- Find the existing payment row. The verified run used NUM.
- Edit the row amount so the payment total equals the selected invoice balance. The verified run changed
1.00to1.97. - Confirm the modal Total also shows the corrected value.
- Click Save again.
- If OfficeGest asks Are you sure?, confirm with OK.
- Confirm OfficeGest opens the final Receipt [R] view, the receipt is closed, and the source invoice is settled.
Verified Behavior
| Check | Observed result |
|---|---|
| Source document | FT 9999/1705 was moved into the receipt Documents grid with value to pay 1.97. |
| Short payment warning | Saving with NUM 1.00 against selected total 1.97 returned valid:false and troco:-0.97. |
| Correction | The existing row value was edited to 1.97, and #payment_total changed to 1.97. |
| Payment validation | After correction, payment&option=validate returned valid:true and troco:0. |
| Final save | saveDocumentRecibo returned OKDOC and OfficeGest redirected to /vendas/r/view/OTk5OTAwMjQ5. |
| Receipt list result | R 9999/249 was found as F / Closed with total 1.97. |
| Invoice settlement | FT 9999/1705 became LIQ / Finished with ValorPago=1.97 and pending value 0.00. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
changeEstadoRecibo | Moves the source invoice into the receipt documents grid. |
payment&option=add | Adds the initial short payment row. |
payment&option=validate | First blocks the short payment, then validates the corrected payment. |
saveDocumentRecibo | Saves the receipt only after the corrected payment covers the selected invoice total. |
DT_List_Documentos | Verifies the closed R receipt and the settled source FT after save. |
Raw evidence: raw/playwright/workflows/receipt-r-fix-partial-payment-20260519T233330Z.json. Screenshots: assets/screenshots/receipt-r-fix-partial-payment-20260519T233330Z-01-create-page.png through assets/screenshots/receipt-r-fix-partial-payment-20260519T233330Z-07-receipt-list.png.