Evidence Summary
- Route
/vendas/fs/create- Final document
999900009 / FS 9999/9- Customer
[910] 100 Ouvidos Lda- Article line
AI-DEMO-20260519-021105, quantity1, total1.97- Payment
[NUM] Numerarioamount2.00; change0.03- Evidence file
raw/playwright/workflows/latest-simplified-invoice-overpayment.json
When to Use This
Use this when a customer pays a simplified invoice with more cash than the document total. OfficeGest accepts the payment because it covers the total, calculates the difference as change, and saves the FS as finished.
Step-by-Step
- Create the Simplified Invoice [FS] and confirm the final total.
- Click End to open the Payment modal.
- Select the payment method. The verified run used [NUM] Numerario.
- Enter the amount received from the customer. The verified run entered
2.00against total1.97. - Click Save in the Payment modal.
- Confirm the final save dialog if OfficeGest asks.
- Check the FS list row. The document should be
LIQ/ Finished, with paid value equal to the document total.
Verified Behavior
| Check | Observed result |
|---|---|
| Payment row | payment&option=add created a NUM row with value 2. |
| Payment validation | payment&option=validate returned valid:true and troco:0.03. |
| Final save | saveDocument returned OKDOC and redirected to /vendas/fs/view/OTk5OTAwMDA5. |
| FS list result | FS 9999/9 was LIQ / Finished with total 1.97, ValorPago=1.97, and pending value 0.00. |
| Important distinction | The entered payment row was 2.00, but the FS list paid value stayed equal to the document total, not the cash received. |
| Stock effect | Warehouse 1 stock decreased from -28 to -29 after final save. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
payment&option=add | Adds the cash row with the received amount. |
payment&option=validate | Accepts payment greater than the document total and returns the change value. |
saveDocument | Finishes the FS after payment validation succeeds. |
DT_List_Documentos&table=FactSim | Verifies the finished simplified invoice row after save. |
Raw evidence: raw/playwright/workflows/simplified-invoice-overpayment-20260519T225200Z.json. Screenshots: assets/screenshots/simplified-invoice-overpayment-20260519T225200Z-01-fr-line-before-payment.png through assets/screenshots/simplified-invoice-overpayment-20260519T225200Z-03-fr-list.png.