Evidence Summary
- Create route
/vendas/gs/create- List route
/vendas/gs- Final view
/vendas/gs/view/OTk5OTAwMDIx- Workflow run
internal-doc-gs-20260519T060333Z- Created document
999900021 / GS 9999/21- Evidence file
raw/playwright/workflows/latest-internal-doc-gs.json
When to Use This
Use Internal Doc [GS] when registering an internal sales-side document that reserves or records customer demand without immediately reducing physical stock. In the verified demo, the GS stayed open, physical stock stayed unchanged, and qtd_enc_cliente increased by the document quantity.
Step-by-Step
- Open Sales / Shipping / Internal Doc [GS], then click New, or navigate directly to
/vendas/gs/create. - Select the customer. The verified run used customer
910, 100 Ouvidos Lda, VAT509031862. - Review the source association menu. GS exposes [ORC] Quotation as an association option; the verified run created a direct article-line GS.
- 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-GS-20260519T060333Z. - 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 GS.
- OfficeGest posts
saveDocument, redirects to the GS view, and creates an open internal document. The verified save response was999900021%&=&OKDOC&=&. - Search the GS list for
999900021. 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, but customer-order quantity changed from1to2.
Verified GS Values
| Field | Value |
|---|---|
| Internal number | 999900021 |
| Visible document number | GS 9999/21 |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Line | Article AI-DEMO-20260519-021105, quantity 1, warehouse 1, VAT 23%. |
| 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 1 to 2. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
DT_List_Documentos&table=DocumGS | Loads and verifies GS internal documents with typesaft=WNE, tipoop=GS, and actualizacc=F. |
NameEntidades&tabla=Cliente | Loads customer master data for customer 910. |
loadArtigoReducido / insertLinhaTabDoc | Loads the warehouse article and inserts the GS line. The article row stored source stock 1 and warehouse 1. |
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 GS document. The verified response was {"return":"999900021%&=&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 2. |
Raw evidence: raw/playwright/workflows/internal-doc-gs-20260519T060333Z.json. Probe evidence: raw/playwright/vendas-gs-create-probe.json. Screenshots: assets/screenshots/internal-doc-gs-20260519T060333Z-01-create-page.png through assets/screenshots/internal-doc-gs-20260519T060333Z-04-gs-list.png.