Evidence Summary
- Source pro-forma
999900065 / FP 9999/65- Draft route
/vendas/enc/rasc/NDYz- Final view
/vendas/enc/view/OTk5OTAwMTA5- Workflow run
finalize-converted-proforma-sales-order-draft-20260519T171841Z- Created sales order
999900109 / ENC 9999/109- Evidence file
raw/playwright/workflows/latest-finalize-converted-proforma-sales-order-draft.json
When to Use This
Use this workflow after a Pro-Forma Invoice [FP] should become a formal Sales Order [ENC] before invoicing or fulfillment. The saved FP view exposes To convert options for Invoice, Invoice / Receipt, and Internal Doc; this guide covers the verified Internal Doc path.
This workflow records an order, not payment. Invoice the order later using the sales order conversion actions.
Step-by-Step
- Open the saved pro-forma invoice. The verified source was
/vendas/fp/view/OTk5OTAwMDY1, documentFP 9999/65. - Click To convert, then choose Internal Doc.
- OfficeGest creates an ENC draft. The verified response was
"OK:463:vendas"and the draft opened at/vendas/enc/rasc/NDYz. - Confirm the draft is the correct customer, reference, and source pro-forma. The verified draft reference was
AI-FP-ENC-FIN-20260519T171841Z. - Review the copied line. The verified line used article
AI-DEMO-20260519-021105, quantity1, and VAT23%. - Check that the draft line points back to the pro-forma:
ndocori=999900065,tipodocori=FP, andlinhandocori=1. - Click Save and Finish.
- Confirm the Are you sure? dialog.
- OfficeGest posts
saveDocumentfrom draft mode and returns the final ENC number. The verified response was{"return":"999900109%&=&OKDOC&=&","print_documents":[]}. - OfficeGest opens the final sales order view
/vendas/enc/view/OTk5OTAwMTA5, with title OG - ENC 9999/109. - Search the ENC list for
999900109and confirm the sales order row exists as open.
Verified Values
| Field | Value |
|---|---|
| Source pro-forma | 999900065 / FP 9999/65 |
| Converted ENC draft | 463, opened at /vendas/enc/rasc/NDYz. |
| Final sales order | 999900109 / ENC 9999/109, opened at /vendas/enc/view/OTk5OTAwMTA5. |
| Final sales order state | ABR / Open, total 1.97, paid 0. |
| Source pro-forma state after conversion | ABR / Open, total 1.97, paid 0. |
| Draft line source | ndocori=999900065, tipodocori=FP, linhandocori=1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
facturardoc | Created ENC draft 463 from source FP 9999/65. |
listaTabDocumento | Loaded the ENC draft line before finalization. |
saveDocument | Finalized the draft into sales order 999900109 / ENC 9999/109. |
DT_List_Documentos | Verified the final ENC sales order row in the document list. |
Raw evidence: raw/playwright/workflows/finalize-converted-proforma-sales-order-draft-20260519T171841Z.json. Screenshots: assets/screenshots/finalize-converted-proforma-sales-order-draft-20260519T171841Z-01-fp-filled.png through assets/screenshots/finalize-converted-proforma-sales-order-draft-20260519T171841Z-05-enc-list.png.
Validation Notes
- ENC finalization records an order, not payment: the verified order saved as
ABR/ Open with paid value0. - Invoice later: after finalizing the ENC, use the sales order conversion actions to create an FT or FR draft when it is time to invoice.
- Source pro-forma remains visible as open: the FP list still showed
FP 9999/65asABR/ Open immediately after conversion/finalization. - Audit link is preserved: the draft line source metadata linked the finalization path back to the source FP line.