Evidence Summary
- Source order
999900107 / ENC 9999/107- Draft route
/vendas/fr/rasc/NDYz- Final view
/vendas/fr/view/OTk5OTAwODQy- Workflow run
finalize-converted-sales-order-invoice-receipt-draft-20260519T164715Z- Created invoice / receipt
999900842 / FR 9999/842- Evidence file
raw/playwright/workflows/finalize-converted-sales-order-invoice-receipt-draft-20260519T164715Z.json
When to Use This
Use this workflow after an accepted Sales Order [ENC] has already been converted into an Invoice / Receipt [FR] draft and the customer is paying immediately. This final save records the payment and issues a finished, paid FR document.
This guide starts at a converted FR draft. To create that draft first, use Convert a Sales Order to an Invoice / Receipt Draft.
Step-by-Step
- Open the converted FR draft. The verified draft was
/vendas/fr/rasc/NDYz, draft number463. - Confirm the draft is the correct customer, reference, and source order. The verified draft reference was
AI-ENC-FR-FIN-20260519T164715Z. - 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=999900107,tipodocori=ENC, andlinhandocori=1. - Click End.
- In the Payment modal, choose [NUM] Numerário and save the payment for the full document total. The verified payment total was
1.97. - Confirm the Are you sure? dialog.
- OfficeGest posts
saveDocumentfrom draft mode and returns the final FR number. The verified response was{"return":"999900842%OK&=&OKDOC&=&","print_documents":[]}. - OfficeGest opens the final invoice / receipt view
/vendas/fr/view/OTk5OTAwODQy, with title OG - FR 9999/842. - Search the FR list for
999900842and confirm the invoice / receipt row exists as finished and paid.
Verified Values
| Field | Value |
|---|---|
| Source sales order | 999900107 / ENC 9999/107 |
| Converted FR draft | 463, opened at /vendas/fr/rasc/NDYz. |
| Final invoice / receipt | 999900842 / FR 9999/842, opened at /vendas/fr/view/OTk5OTAwODQy. |
| Payment | [NUM] Numerário, total 1.97. |
| Final invoice / receipt state | LIQ / Finished, total 1.97, paid 1.97. |
| Source order state after conversion | ABR / Open, total 1.97, paid 0. |
| Draft line source | ndocori=999900107, tipodocori=ENC, linhandocori=1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
facturardoc | Created FR draft 463 from source ENC 9999/107. |
listaTabDocumento | Loaded the FR draft line before finalization. |
payment&option=add | Added [NUM] Numerário payment for 1.97. |
saveDocument | Finalized the draft into invoice / receipt 999900842 / FR 9999/842. |
DT_List_Documentos | Verified the final FR invoice / receipt row in the document list. |
Raw evidence: raw/playwright/workflows/finalize-converted-sales-order-invoice-receipt-draft-20260519T164715Z.json. Screenshots: assets/screenshots/finalize-converted-sales-order-invoice-receipt-draft-20260519T164715Z-01-enc-filled.png through assets/screenshots/finalize-converted-sales-order-invoice-receipt-draft-20260519T164715Z-05-fr-list.png.
Validation Notes
- FR finalization means paid: the verified invoice / receipt saved as
LIQ/ Finished with paid value1.97. - Payment is required: ending the draft opens the payment modal before the final document can be saved.
- Source order remains visible as open: the ENC list still showed
ENC 9999/107asABR/ Open immediately after conversion/finalization. - Audit link is visible: the final FR view showed Originating in: Internal Doc: ENC 9999/107.