Evidence Summary
- Source order
999900106 / ENC 9999/106- Draft route
/vendas/ft/rasc/NDYz- Final view
/vendas/ft/view/OTk5OTAxNjY4- Workflow run
finalize-converted-sales-order-invoice-draft-20260519T164146Z- Created invoice
999901668 / FT 9999/1668- Evidence file
raw/playwright/workflows/latest-finalize-converted-sales-order-invoice-draft.json
When to Use This
Use this workflow after an accepted Sales Order [ENC] has already been converted into an Invoice [FT] draft and the invoice is ready to issue. This final save turns the FT draft into a real FT invoice. It does not record payment; the verified final FT stayed open and unpaid.
This guide starts at a converted FT draft. To create that draft first, use Convert a Sales Order to an Invoice Draft.
Step-by-Step
- Open the converted FT draft. The verified draft was
/vendas/ft/rasc/NDYz, draft number463. - Confirm the draft is the correct customer, reference, and source order. The verified draft reference was
AI-ENC-FT-FIN-20260519T164146Z. - Review the copied line. The verified line used article
AI-DEMO-20260519-021105, quantity1, and VAT23%. - Check that the draft line still points back to the sales order:
ndocori=999900106,tipodocori=ENC, andlinhandocori=1. - Click Save and Finish.
- Confirm the Are you sure? dialog.
- OfficeGest posts
saveDocumentfrom draft mode and returns the final FT number. The verified response was{"return":"999901668%OK&=&OKDOC&=&","print_documents":[]}. - OfficeGest opens the final invoice view
/vendas/ft/view/OTk5OTAxNjY4, with title OG - FT 9999/1668. - Search the FT list for
999901668and confirm the invoice row exists.
Verified Values
| Field | Value |
|---|---|
| Source sales order | 999900106 / ENC 9999/106 |
| Converted FT draft | 463, opened at /vendas/ft/rasc/NDYz. |
| Final invoice | 999901668 / FT 9999/1668, opened at /vendas/ft/view/OTk5OTAxNjY4. |
| Final invoice state | ABR / Open, total 1.97, paid 0. |
| Source order state after conversion | ABR / Open, total 1.97, paid 0. |
| Draft line source | ndocori=999900106, tipodocori=ENC, linhandocori=1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
facturardoc | Created FT draft 463 from source ENC 9999/106. |
listaTabDocumento | Loaded the FT draft line before finalization. |
saveDocument | Finalized the draft into invoice 999901668 / FT 9999/1668. |
DT_List_Documentos | Verified the final FT invoice row in the document list. |
Raw evidence: raw/playwright/workflows/finalize-converted-sales-order-invoice-draft-20260519T164146Z.json. Screenshots: assets/screenshots/finalize-converted-sales-order-invoice-draft-20260519T164146Z-01-enc-filled.png through assets/screenshots/finalize-converted-sales-order-invoice-draft-20260519T164146Z-05-ft-list.png.
Validation Notes
- FT finalization does not mean paid: the verified invoice saved as
ABR/ Open with paid value0. - Use receipts to settle later: after finalizing the FT, use Create a Receipt when the customer pays.
- Source order remains visible as open: the ENC list still showed
ENC 9999/106asABR/ Open immediately after conversion/finalization. - Audit link is preserved: the draft line source metadata linked the finalization path back to the source ENC line.