Workflow

How to Create a Sales Order

Verified end to end. Demo run sales-order-enc-20260520T002909Z created customer order ENC 9999/110 / 999900110 for customer [910] 100 Ouvidos Lda and verified the open order through the ENC document list.

Evidence Summary

Create route
/vendas/enc/create
List route
/vendas/enc
Final view
/vendas/enc/view/OTk5OTAwMTEw
Workflow run
sales-order-enc-20260520T002909Z
Created order
999900110 / ENC 9999/110
Evidence file
raw/playwright/workflows/latest-sales-order-enc.json

Verified sales order workflow

When to Use This

Use Internal Doc [ENC] when registering a customer order before invoicing or fulfillment. The verified path creates an open order, does not require a payment line, and does not reduce physical stock. Instead, OfficeGest increases the customer-order quantity for the article.

Step-by-Step

  1. Open Sales / Internal Doc [ENC], then click Create Order, or navigate directly to /vendas/enc/create.
  2. Confirm the page title is OG - Internal Doc [ENC] and the main actions are Save Draft, Save and Print, and Save and Finish.
  3. Select the customer. The verified run used customer 910, 100 Ouvidos Lda, VAT 509031862.
  4. Review billing address, employee, commercial, payment term, currency, tax zone, and series. The verified run used employee Demo, commercial Comercial 1, payment term PP, currency EUR, and series 9999.
  5. Optionally enter a reference. The verified run used AI-ENC-20260520T002909Z.
  6. Optionally fill the expected delivery date. The ENC page includes Estimated Date at line level and data_entrega_prevista at document level.
  7. Add the order line. The verified line used article AI-DEMO-20260519-021105, quantity 1, warehouse 1, unit price 1.60, VAT 23%, and total 1.97.
  8. Click Save and Finish.
  9. Confirm the Are you sure? dialog with OK.
  10. OfficeGest posts saveDocument, redirects to the ENC view, and keeps the order in Open state. The verified save response was 999900110%&=&OKDOC&=&.
  11. Search the ENC list for 999900110 or reference AI-ENC-20260520T002909Z. The verified row showed status ABR / Open, total 1.97, paid value 0.00, and pending value 1.97.

Verified Order Values

FieldValue
Internal number999900110
Visible document numberENC 9999/110
ReferenceAI-ENC-20260520T002909Z
Customer[910] 100 Ouvidos Lda, VAT 509031862
StatusABR, visible as Open
Total1.97
PaymentNo payment modal; ValorPago=0 and pending value 1.97.
Stock/order effectWarehouse 1 stock stayed -41; customer-order quantity qtd_enc_cliente increased to 6 in the verified creation run.

Backend Calls Observed

Action or endpointPurpose
NameEntidadesLoads customer master data for customer 910.
findDocsPendentesChecks pending customer documents and warning context.
loadArtigoReducido&compras=F&actualizastocks=F&tipoop=ENCLoads sales article metadata for a non-stock-moving order line.
insertLinhaTabDocInserts the order line into temporary table 45716.
listaTabDocumentoLoads line data before save and on the final order view.
create_document&option=calcular_totaisCalculates net, VAT, and total for the ENC order.
saveDocumentCreates the finished/open ENC order. The verified response was {"return":"999900110%&=&OKDOC&=&","print_documents":[]}.
DT_List_DocumentosVerifies the order in the ENC list using table Enc, typesaft=WNE, and tipoop=ENC.
dt_list_recalc_stock_articles_lojasVerifies physical stock stayed unchanged and customer-order quantity increased.

Raw evidence: raw/playwright/workflows/sales-order-enc-20260520T002909Z.json. Screenshots: assets/screenshots/sales-order-enc-20260520T002909Z-01-create-page.png through assets/screenshots/sales-order-enc-20260520T002909Z-04-enc-list.png.

Validation Notes