Evidence Summary
- Route
/vendas/fr/create- Customer
[910] 100 Ouvidos Lda- Article line
AI-DEMO-20260519-021105, quantity1, total1.97- Evidence file
raw/playwright/workflows/latest-invoice-receipt-fix-partial-payment.json
When to Use This
Use this when OfficeGest keeps the Payment modal open because the payment row is below the document total. 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 document total. 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 Invoice / Receipt [FR] view and the document is finished.
Verified Behavior
| Check | Observed result |
|---|---|
| Short payment warning | Saving with NUM 1.00 against 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 | saveDocument returned OKDOC and OfficeGest redirected to /vendas/fr/view/OTk5OTAwODQ3. |
| FR list result | FR 9999/847 was found as LIQ / Finished with ValorPago=1.97 and pending value 0.00. |
| Stock effect | Warehouse 1 stock decreased from -26 to -27 after final save. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
payment&option=add | Adds the initial short payment row. |
payment&option=validate | First blocks the short payment, then validates the corrected payment. |
saveDocument | Finishes the FR only after the corrected payment covers the document total. |
DT_List_Documentos | Verifies the finished FR row after save. |
Raw evidence: raw/playwright/workflows/invoice-receipt-fix-partial-payment-20260519T223353Z.json. Screenshots: assets/screenshots/invoice-receipt-fix-partial-payment-20260519T223353Z-01-fr-line-before-payment.png through assets/screenshots/invoice-receipt-fix-partial-payment-20260519T223353Z-04-fr-list.png.