Workflow

How to Finalize a Converted Sales Order Invoice / Receipt Draft

Verified end to end. Demo run finalize-converted-sales-order-invoice-receipt-draft-20260519T164715Z created sales order ENC 9999/107, converted it to FR draft 463, recorded payment, and saved it as final invoice / receipt FR 9999/842 / 999900842.

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

Verified converted sales order invoice receipt draft finalization workflow

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

  1. Open the converted FR draft. The verified draft was /vendas/fr/rasc/NDYz, draft number 463.
  2. Confirm the draft is the correct customer, reference, and source order. The verified draft reference was AI-ENC-FR-FIN-20260519T164715Z.
  3. Review the copied line. The verified line used article AI-DEMO-20260519-021105, quantity 1, and VAT 23%.
  4. Check that the draft line still points back to the sales order: ndocori=999900107, tipodocori=ENC, and linhandocori=1.
  5. Click End.
  6. In the Payment modal, choose [NUM] Numerário and save the payment for the full document total. The verified payment total was 1.97.
  7. Confirm the Are you sure? dialog.
  8. OfficeGest posts saveDocument from draft mode and returns the final FR number. The verified response was {"return":"999900842%OK&=&OKDOC&=&","print_documents":[]}.
  9. OfficeGest opens the final invoice / receipt view /vendas/fr/view/OTk5OTAwODQy, with title OG - FR 9999/842.
  10. Search the FR list for 999900842 and confirm the invoice / receipt row exists as finished and paid.

Verified Values

FieldValue
Source sales order999900107 / ENC 9999/107
Converted FR draft463, opened at /vendas/fr/rasc/NDYz.
Final invoice / receipt999900842 / FR 9999/842, opened at /vendas/fr/view/OTk5OTAwODQy.
Payment[NUM] Numerário, total 1.97.
Final invoice / receipt stateLIQ / Finished, total 1.97, paid 1.97.
Source order state after conversionABR / Open, total 1.97, paid 0.
Draft line sourcendocori=999900107, tipodocori=ENC, linhandocori=1.

Backend Calls Observed

Action or endpointPurpose
facturardocCreated FR draft 463 from source ENC 9999/107.
listaTabDocumentoLoaded the FR draft line before finalization.
payment&option=addAdded [NUM] Numerário payment for 1.97.
saveDocumentFinalized the draft into invoice / receipt 999900842 / FR 9999/842.
DT_List_DocumentosVerified 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