Evidence Summary
- Original draft
467//vendas/ft/rasc/NDY3- Active edited draft
468//vendas/ft/rasc/NDY4- Edited reference
AI-FT-DRAFT-20260519T180605Z-EDIT- Workflow run
edit-sales-invoice-draft-20260519T180638Z- Evidence file
raw/playwright/workflows/latest-edit-sales-invoice-draft.json
When to Use This
Use this when an invoice was saved as an FT draft and the user needs to correct header information before issuing it. The verified run changed the draft reference only; line editing should be verified separately before documenting it as covered.
In the verified run, re-saving the edited draft returned a new draft number. OfficeGest moved from draft 467 to draft 468, so users should keep working from the new draft URL after saving edits.
Step-by-Step
- Open the saved FT draft. The verified source was
/vendas/ft/rasc/NDY3. - Confirm the page title is OG - Invoice [FT] and the document is still a draft route, not a final
/view/route. - Review the existing customer and lines. The verified draft had customer
910and one article line forAI-DEMO-20260519-021105. - Edit the header field that needs correction. The verified run changed the reference from
AI-FT-DRAFT-20260519T180605ZtoAI-FT-DRAFT-20260519T180605Z-EDIT. - Click Save Draft.
- OfficeGest saves through
saveRascunho. The verified response was"OK:468:&=&AI-DEMO-20260519-021105:1#". - Use the new draft route shown after save. The verified edited draft reopened at
/vendas/ft/rasc/NDY4. - Reopen or refresh the active draft and confirm the edited value persisted.
- Do not treat the draft as issued. The verified final FT list search for the edited reference returned no final invoice rows.
Verified Values
| Field | Value |
|---|---|
| Original draft | 467, route /vendas/ft/rasc/NDY3. |
| Active edited draft | 468, route /vendas/ft/rasc/NDY4. |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862. |
| Edited field | Reference changed to AI-FT-DRAFT-20260519T180605Z-EDIT. |
| Line preserved | Article AI-DEMO-20260519-021105, quantity 1, warehouse 1, VAT 23%. |
| Final document list | No final FT rows were returned for the edited reference. |
| Stock effect | Warehouse 1 stock stayed at -3 before and after the draft edit. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
listaTabDocumento | Loads the saved FT draft line after opening the draft route. |
create_document&option=calcular_totais | Recalculates totals after the draft is loaded. |
saveRascunho | Re-saves the edited draft. The verified response returned draft 468. |
NameEntidades&tabla=Cliente | Reloads customer context after the edited draft route opens. |
DT_List_Documentos | Confirms the edited draft reference is not present as a finalized FT invoice. |
dt_list_recalc_stock_articles_lojas | Confirms no stock movement happened during draft edit and re-save. |
Raw evidence: raw/playwright/workflows/edit-sales-invoice-draft-20260519T180638Z.json. Screenshots: assets/screenshots/edit-sales-invoice-draft-20260519T180638Z-01-open-draft-before-edit.png through assets/screenshots/edit-sales-invoice-draft-20260519T180638Z-04-reopened-edited-draft.png.