Evidence Summary
- Route
/vendas/fr/create- Customer
[910] 100 Ouvidos Lda- Article line
AI-DEMO-20260519-021105, quantity1, total1.97- Payment state
[NUM] Numerariopayment line with value1.00; shortage0.97- Evidence file
raw/playwright/workflows/latest-invoice-receipt-partial-payment-validation.json
What It Means
Invoice / Receipt [FR] documents must have payment equal to or greater than the document total before they can be finished. A payment row can exist and still be invalid if its value is below the total. In the verified run, OfficeGest returned valid:false with troco:-0.97, which means the payment was short by 0.97.
How to Fix It
- Stay in the Payment modal after OfficeGest shows the payment warning.
- Find the existing payment row, such as NUM.
- Increase the row value until the payment total covers the document total. For the verified run, the payment had to move from
1.00to at least1.97. - Alternatively, add another payment method row so the combined payment reaches the total.
- Click the modal Save action again.
- Confirm the final save dialog if OfficeGest asks. The final FR should open in the finished view only after the payment validates.
For the verified correction path that edits the same row and finishes the document, see How to Fix a Partial Payment on an Invoice / Receipt.
Verified Behavior
| Check | Observed result |
|---|---|
| Before payment | Customer 910 selected and one line inserted. |
| Payment row | payment&option=add created a NUM line with value 1. |
| Payment validation | payment&option=validate returned valid:false, troco:-0.97, and message text The payment is equal to or greater than the total document. |
| Payment modal | Payment modal remained visible with payment total 1.00. |
| Final save request | No saveDocument request was submitted. |
| Stock effect | Warehouse 1 stock stayed at -3 because the document was not finalized. |
Raw evidence: raw/playwright/workflows/invoice-receipt-partial-payment-validation-20260519T190550Z.json. Screenshots: assets/screenshots/invoice-receipt-partial-payment-validation-20260519T190550Z-01-fr-line-before-payment.png and assets/screenshots/invoice-receipt-partial-payment-validation-20260519T190550Z-02-partial-payment-blocked.png.