Workflow

How to Finalize a Saved Sales Invoice Draft

Verified end to end. Demo run finalize-saved-sales-invoice-draft-20260519T175951Z created FT draft 465, reopened it at /vendas/ft/rasc/NDY1, and saved it as final invoice FT 9999/1677 / 999901677.

Evidence Summary

Source draft
465
Final FT
999901677 / FT 9999/1677
Final view
/vendas/ft/view/OTk5OTAxNjc3
Reference
AI-FT-DRAFT-20260519T175923Z
Evidence file
raw/playwright/workflows/latest-finalize-saved-sales-invoice-draft.json

Verified saved invoice draft finalization workflow

When to Use This

Use this when an FT was previously saved with Save Draft and is now ready to issue. Finalizing the draft creates a real invoice number, moves the document into the FT list, updates stock, and leaves the invoice open and unpaid unless the user later creates a receipt.

Step-by-Step

  1. Open the saved FT draft. The verified draft was /vendas/ft/rasc/NDY1.
  2. Review the draft header. Confirm the customer, reference, payment terms, dates, and address are correct.
  3. Review the lines. The verified draft contained article AI-DEMO-20260519-021105, quantity 1, VAT 23%, and total 1.97.
  4. Click Save and Finish.
  5. Confirm the Are you sure? dialog.
  6. OfficeGest saves the draft through the normal final invoice save and opens the final FT view.
  7. Verify the final invoice number. The verified final view was FT 9999/1677.
  8. Check the FT list if needed. The verified list row was ABR / Open, total 1.97, paid 0.00, and pending 1.97.
  9. If the customer pays later, use Create a Receipt from a Sales Invoice or Create a Receipt.

Verified Values

FieldValue
Draft465, opened as /vendas/ft/rasc/NDY1.
Final invoice999901677 / FT 9999/1677.
Customer[910] 100 Ouvidos Lda, VAT 509031862.
ReferenceAI-FT-DRAFT-20260519T175923Z.
Final stateABR / Open, total 1.97, paid 0.00, pending 1.97.
Stock effectWarehouse 1 stock for the article moved from -2 before finalization to -3 after finalization.

Backend Calls Observed

Action or endpointPurpose
listaTabDocumentoLoads the saved FT draft line after opening /vendas/ft/rasc/NDY1.
checkProfitMarginsRuns margin validation before final save.
create_document&option=calcular_totaisRecalculates invoice totals before final save.
saveDocumentFinalizes the FT draft. The verified response returned 999901677 and OKDOC.
DT_List_DocumentosVerifies the final FT list row after save.
dt_list_recalc_stock_articles_lojasVerifies the stock movement caused by issuing the final invoice.

Raw evidence: raw/playwright/workflows/finalize-saved-sales-invoice-draft-20260519T175951Z.json. Screenshots: assets/screenshots/finalize-saved-sales-invoice-draft-20260519T175951Z-01-open-draft.png through assets/screenshots/finalize-saved-sales-invoice-draft-20260519T175951Z-03-ft-list.png.