Evidence Summary
- Create route
/vendas/or/create- List route
/vendas/or- Final view
/vendas/or/view/OTk5OTAwMDAz- Workflow run
mold-repair-or-20260519T062304Z- Created document
999900003 / OR 9999/3- Evidence file
raw/playwright/workflows/latest-mold-repair-or.json
When to Use This
Use Reparacao Molde [OR] for a mold-repair sales-side document where the article line represents work or material expected for a customer, but should not immediately reduce physical warehouse stock. In the verified demo, OR behaved like an open backlog document: physical stock stayed unchanged and customer-order quantity increased by the line quantity.
Step-by-Step
- Open Sales / Reparacao Molde [OR], then click New, or navigate directly to
/vendas/or/create. - Confirm the page title is OG - Reparacao Molde [OR]. The primary save actions are Save Draft, Save and Print, and Save and Finish.
- Select the customer. The verified run used customer
910, 100 Ouvidos Lda, VAT509031862. - Review the source association menu. OR exposes [ENC] Internal Doc as an association option; the verified run created a direct article-line OR.
- Confirm document series, employee, commercial, and payment term. The verified run used series
9999, employeeDemo, commercialComercial 1, and payment termPP. - Optionally enter a reference. The verified run used
AI-OR-20260519T062304Z. - Add the article line. The verified run inserted article
AI-DEMO-20260519-021105, quantity1, warehouse1, unit price1.60, VAT23%, total1.97, and estimated date19/05/2026. - Click Save and Finish. OfficeGest showed the confirmation Are you sure?; confirm it to create the OR.
- OfficeGest posts
saveDocument, redirects to the OR view, and creates an open mold repair document. The verified save response was999900003%&=&OKDOC&=&. - Search the OR list for
999900003. The verified row showed statusABR/ Open, total1.97, paid0.00, pending1.97, and payment term Pronto Pagamento. - Check stock after saving. Warehouse
1physical stock stayed1, while customer-order quantity changed from2to3.
Verified OR Values
| Field | Value |
|---|---|
| Internal number | 999900003 |
| Visible document number | OR 9999/3 |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Route/list identity | /vendas/or, table DocumOR, typesaft=WNE, tipoop=OR, oficinas=F, recibo=F, actualizacc=F. |
| Line | Article AI-DEMO-20260519-021105, quantity 1, warehouse 1, VAT 23%, estimated date 19/05/2026. |
| Status | ABR, visible as Open; validation N/D. |
| Total | 1.97; paid 0.00; pending 1.97. |
| Stock/order effect | Warehouse 1 physical stock stayed 1; qtd_enc_cliente changed from 2 to 3; qtd_enc_forn stayed 1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
DT_List_Documentos&table=DocumOR | Loads and verifies OR documents with oficinas=F, recibo=F, actualizacc=F, typesaft=WNE, and tipoop=OR. |
NameEntidades&tabla=Cliente | Loads customer master data for customer 910, including VAT, address, seller, and employee context. |
findDocsPendentes | Checks pending customer documents for customer 910 during entity selection. |
loadArtigoReducido / insertLinhaTabDoc | Loads the non-stock-updating article context and inserts the OR line. The call used actualizastocks=F, temporary table 47325, article AI-DEMO-20260519-021105, customer 910, warehouse 1, quantity 1, and document type OR. |
create_document&option=calcular_totais | Calculates gross, VAT, and total. Verified totals were net 1.60, VAT 0.37, and total 1.97. |
saveDocument | Creates the OR document. The verified response was {"return":"999900003%&=&OKDOC&=&","print_documents":[]}. |
dt_list_recalc_stock_articles_lojas | Confirms stock/order quantities after final save. Physical stock stayed 1; customer-order quantity changed to 3. |
Raw evidence: raw/playwright/workflows/mold-repair-or-20260519T062304Z.json. Probe evidence: raw/playwright/vendas-or-create-probe.json. Screenshots: assets/screenshots/mold-repair-or-20260519T062304Z-01-create-page.png through assets/screenshots/mold-repair-or-20260519T062304Z-04-or-list.png.