Evidence Summary
- Original draft
474//vendas/ft/rasc/NDc0- Active edited draft
475//vendas/ft/rasc/NDc1- Quantity
1before,2after- Reference
AI-FT-DRAFT-20260519T182919Z-QTY2- Evidence file
raw/playwright/workflows/latest-change-quantity-sales-invoice-draft.json
Step-by-Step
- Open the saved FT draft. The verified source was
/vendas/ft/rasc/NDc0. - Confirm the page is still OG - Invoice [FT] on a draft route.
- In the line grid, edit the Qty cell for the article line.
- Enter the new quantity and let OfficeGest recalculate totals. The verified quantity changed from
1to2. - Click Save Draft.
- Use the new draft route returned by OfficeGest. The verified re-save returned
OK:475. - Reopen or refresh the active draft and confirm the changed quantity is still present.
- Do not treat the document as issued until you use Save and Finish. The verified final FT list search returned no final invoice rows.
Verified Values
| Field | Value |
|---|---|
| Original draft | 474, route /vendas/ft/rasc/NDc0. |
| Active edited draft | 475, route /vendas/ft/rasc/NDc1. |
| Line result | Row count stayed 1; total quantity changed from 1 to 2. |
| Total with VAT | Line total with VAT changed from 1.96677 to 3.93354. |
| Final document list | No final FT rows were returned for reference AI-FT-DRAFT-20260519T182919Z-QTY2. |
| Stock effect | Warehouse 1 stock stayed at -3 before and after the draft quantity change. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
updateEditableTabDoc | Updates the draft line quantity with campo=Qtd. |
listaTabDocumento | Reloads the saved draft line grid after the edit. |
create_document&option=calcular_totais | Recalculates totals after the quantity change. |
saveRascunho | Re-saves the draft. The verified response returned draft 475. |
DT_List_Documentos | Confirms the edited draft reference is not a finalized FT invoice. |
dt_list_recalc_stock_articles_lojas | Confirms no stock movement happened while the document remained a draft. |
Raw evidence: raw/playwright/workflows/change-quantity-sales-invoice-draft-20260519T182947Z.json. Screenshots: assets/screenshots/change-quantity-sales-invoice-draft-20260519T182947Z-01-open-draft-before-quantity-change.png through assets/screenshots/change-quantity-sales-invoice-draft-20260519T182947Z-04-reopened-edited-draft.png.