Workflow

How to Create an Invoice / Receipt

Verified end to end. Demo run invoice-fr-20260519T024739Z created FR 9999/841 for customer [910] 100 Ouvidos Lda, paid it with [NUM] Numerario, and reduced article warehouse stock from 2 to 1.

Known Starting Points

Verified Screen Flow

Verified invoice creation workflow

  1. Open the Back Office dashboard as the Demo user.
  2. Open Novo documento: Factura / Recibo, or navigate directly to /vendas/fr/create.
  3. Confirm the page title is OG - Invoice / Receipt [FR] and the heading is New document.
  4. In Vehicle & Entity, select an active Fact entity. The verified run used customer 910, 100 Ouvidos Lda, VAT 509031862. OfficeGest loaded address, country, commercial, and payment context from NameEntidades.
  5. Review Delivery Method and Details. For the verified customer, OfficeGest filled delivery/discharge data, employee Demo, commercial Comercial 1, currency EUR, tax zone PT-MA, series 9999, and payment condition PP.
  6. Open Document / Doc. Lines. Search for an article, choose it from the autocomplete, and confirm that it appears in the line table.
  7. The verified line used article AI-DEMO-20260519-021105, quantity 1,00, unit price 1.60, VAT 23.00%, store 1, and pre-save stock 2,00.
  8. Review totals. The verified totals were gross 1,60 EUR, VAT 0,37 EUR, and total 1,97 EUR.
  9. Click End. If OfficeGest asks Recalculate sales prices?, click OK. The flow may also warn that the customer has documents past payment deadline.
  10. In the Payment modal, select a payment method. The verified path clicked [NUM] Numerario, which created a payment line for 1.97.
  11. Click Save in the Payment modal, then confirm Are you sure? with OK.
  12. OfficeGest redirects to a view page, marks the document Finished, and shows payment details. The verified redirect was /vendas/fr/view/OTk5OTAwODQx.

Fields and Tabs

AreaWhat the user should check
Vehicle & EntityOptional vehicle data, owner, fact entity, VAT number, final customer shortcut, new customer action, and loyalty context.
Delivery MethodMode of delivery, load and discharge addresses, dates, times, country and postal data. Missing or inconsistent addresses can affect fiscal/shipping data.
DetailsEmployee, commercial, payment method, due date, classification, reference, currency, exchange rate, billing address, observations, series, emission date, fiscal zone, and accounting launch type.
DocumentArticle/service lines, line options, duplicate, attach, import, VAT rates, other data, profit margin, and final totals.
Payment modalPayment methods such as NUM, TRA, MBW, CHQ, payment amount, cash box, estimated date, exchange, Save, and Save and Print.

Backend Calls Observed

ActionPurpose in the workflow
NameEntidadesLoads customer master data. Customer 910 returned activo: T, address, VAT number, and commercial id.
DT_Select_AdiantamentosClientesChecks customer advances/open advance documents. Customer 910 had advance document FR 9999/819.
SearchProduct / loadArtigoReducidoSearches and loads the selected article with VAT, cost, sale price, stock, warehouse, and article flags.
insertLinhaTabDocAdds the article into the draft invoice line table.
listaTabDocumentoReloads the line table before and after save. After finalization it showed stock quantity 1.
create_document&option=calcular_totaisRecalculates gross, VAT, retention, and document total.
checkProfitMarginsValidates line/document margin rules. The verified line produced OK_MARGEM.
payment&option=validateValidates whether payment covers the document total. Before choosing a method it returned that payment was not equal to or greater than the total.
payment&option=addAdds the selected payment method. The verified request used modopagamento=NUM, total=1.97.
saveDocumentFinal save. The verified response was 999900841%OK&=&OKDOC&=&.
dt_list_recalc_stock_articles_lojasStock verification. Warehouse 1 changed from QtdStock: 2 to QtdStock: 1.

Raw evidence: raw/playwright/workflows/invoice-fr-20260519T024739Z.json. Screenshots: assets/screenshots/invoice-fr-20260519T024739Z-01-create-page.png through assets/screenshots/invoice-fr-20260519T024739Z-05-sales-list.png.

Validation Notes