Evidence Summary
- Source quotation
999900093 / ORC 9999/93- Draft route
/vendas/fr/rasc/NDYz- Final view
/vendas/fr/view/OTk5OTAwODQz- Workflow run
finalize-converted-quotation-invoice-receipt-draft-20260519T165805Z- Created invoice / receipt
999900843 / FR 9999/843- Evidence file
raw/playwright/workflows/latest-finalize-converted-quotation-invoice-receipt-draft.json
When to Use This
Use this workflow after an accepted Quotation [ORC] 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 Quotation 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 quotation. The verified draft reference was
AI-ORC-FR-FIN-20260519T165805Z. - 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 quotation:
ndocori=999900093,tipodocori=ORC, 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":"999900843%OK&=&OKDOC&=&","print_documents":[]}. - OfficeGest opens the final invoice / receipt view
/vendas/fr/view/OTk5OTAwODQz, with title OG - FR 9999/843. - Search the FR list for
999900843and confirm the invoice / receipt row exists as finished and paid.
Verified Values
| Field | Value |
|---|---|
| Source quotation | 999900093 / ORC 9999/93 |
| Converted FR draft | 463, opened at /vendas/fr/rasc/NDYz. |
| Final invoice / receipt | 999900843 / FR 9999/843, opened at /vendas/fr/view/OTk5OTAwODQz. |
| Payment | [NUM] Numerário, total 1.97. |
| Final invoice / receipt state | LIQ / Finished, total 1.97, paid 1.97. |
| Source quotation state after conversion | ABR / Open, total 1.97, paid 0. |
| Draft line source | ndocori=999900093, tipodocori=ORC, linhandocori=1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
facturardoc | Created FR draft 463 from source ORC 9999/93. |
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 999900843 / FR 9999/843. |
DT_List_Documentos | Verified the final FR invoice / receipt row in the document list. |
Raw evidence: raw/playwright/workflows/finalize-converted-quotation-invoice-receipt-draft-20260519T165805Z.json. Screenshots: assets/screenshots/finalize-converted-quotation-invoice-receipt-draft-20260519T165805Z-01-orc-filled.png through assets/screenshots/finalize-converted-quotation-invoice-receipt-draft-20260519T165805Z-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 quotation remains visible as open: the ORC list still showed
ORC 9999/93asABR/ Open immediately after conversion/finalization. - Audit link is visible: the final FR view showed Originating in: Quotation: ORC 9999/93.