Evidence Summary
- Draft type
FT/ Invoice- Draft number
464- Draft route
/vendas/ft/rasc/NDY0- Reference
AI-FT-DRAFT-20260519T175248Z- Evidence file
raw/playwright/workflows/latest-sales-invoice-draft-ft.json
When to Use This
Use Save Draft when the invoice is not ready to be issued. The verified draft kept the customer, reference, article line, totals, and editable FT context, but it did not create a final FT document row and did not change physical stock in the stock check.
Step-by-Step
- Open Sales / Invoice [FT] or go to
/vendas/ft/create. - Select the customer. The verified run used customer
910, 100 Ouvidos Lda. - Fill the normal invoice header fields, including payment term and reference if needed.
- Add the invoice line. The verified run used article
AI-DEMO-20260519-021105, quantity1, warehouse1, VAT23%, and total1.97. - Click Save Draft, not Save and Finish.
- OfficeGest saves through
saveRascunhoand opens the draft route. The verified response was"OK:464:&=&AI-DEMO-20260519-021105:1#". - Confirm the URL is a draft URL like
/vendas/ft/rasc/NDY0. The page title remains OG - Invoice [FT]. - Review the draft. The verified draft still contained customer
910, referenceAI-FT-DRAFT-20260519T175248Z, typeFT, and the article line. - When the invoice is ready later, open the draft route and use Save and Finish to issue the final FT.
Verified Values
| Field | Value |
|---|---|
| Customer | [910] 100 Ouvidos Lda, VAT 509031862. |
| Draft | 464, opened as /vendas/ft/rasc/NDY0. |
| Reference | AI-FT-DRAFT-20260519T175248Z. |
| Line | Article AI-DEMO-20260519-021105, quantity 1, warehouse 1, unit price 1.599, VAT 23%. |
| Final document list | Search for the draft reference returned no final FT rows in the verified run. |
| Stock check | Warehouse stock for the article was -1 before draft save and -1 after draft save. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades&tabla=Cliente | Loads customer master data after customer selection. |
loadArtigoReducido | Loads the selected article for an FT line. |
insertLinhaTabDoc | Creates the temporary line-table row before saving the draft. |
create_document&option=calcular_totais | Calculates invoice totals before draft save. |
checkProfitMargins | Runs margin validation before save. |
saveRascunho | Saves the draft. The verified response returned OK:464. |
listaTabDocumento | Reloads the draft line on /vendas/ft/rasc/NDY0. |
DT_List_Documentos | Confirmed the draft reference was not present as a finalized FT document. |
dt_list_recalc_stock_articles_lojas | Confirmed the physical stock value did not change after draft save. |
Raw evidence: raw/playwright/workflows/sales-invoice-draft-ft-20260519T175248Z.json. Screenshots: assets/screenshots/sales-invoice-draft-ft-20260519T175248Z-01-create-page.png through assets/screenshots/sales-invoice-draft-ft-20260519T175248Z-04-draft-page.png.