Workflow

How to Create an Internal Doc GS

Verified end to end. Demo run internal-doc-gs-20260519T060333Z created internal document GS 9999/21 / 999900021, verified it through the GS list, and confirmed that it increases customer-order quantity without moving physical stock.

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

Verified internal doc GS workflow

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

  1. Open Sales / Shipping / Internal Doc [GS], then click New, or navigate directly to /vendas/gs/create.
  2. Select the customer. The verified run used customer 910, 100 Ouvidos Lda, VAT 509031862.
  3. Review the source association menu. GS exposes [ORC] Quotation as an association option; the verified run created a direct article-line GS.
  4. Confirm document series, employee, commercial, and payment term. The verified run used series 9999, employee Demo, commercial Comercial 1, and payment term PP.
  5. Optionally enter a Reference. The verified run used AI-GS-20260519T060333Z.
  6. Add the article line. The verified run inserted article AI-DEMO-20260519-021105, quantity 1, warehouse 1, unit price 1.60, VAT 23%, total 1.97, and estimated date 19/05/2026.
  7. Click Save and Finish. OfficeGest showed the confirmation Are you sure?; confirm it to create the GS.
  8. OfficeGest posts saveDocument, redirects to the GS view, and creates an open internal document. The verified save response was 999900021%&=&OKDOC&=&.
  9. Search the GS list for 999900021. The verified row showed status ABR / Open, total 1.97, paid 0.00, pending 1.97, and payment term Pronto Pagamento.
  10. Check stock after saving. Warehouse 1 physical stock stayed 1, but customer-order quantity changed from 1 to 2.

Verified GS Values

FieldValue
Internal number999900021
Visible document numberGS 9999/21
Customer[910] 100 Ouvidos Lda, VAT 509031862
LineArticle AI-DEMO-20260519-021105, quantity 1, warehouse 1, VAT 23%.
StatusABR, visible as Open; validation N/D.
Total1.97; paid 0.00; pending 1.97.
Stock/order effectWarehouse 1 physical stock stayed 1; qtd_enc_cliente changed from 1 to 2.

Backend Calls Observed

Action or endpointPurpose
DT_List_Documentos&table=DocumGSLoads and verifies GS internal documents with typesaft=WNE, tipoop=GS, and actualizacc=F.
NameEntidades&tabla=ClienteLoads customer master data for customer 910.
loadArtigoReducido / insertLinhaTabDocLoads the warehouse article and inserts the GS line. The article row stored source stock 1 and warehouse 1.
create_document&option=calcular_totaisCalculates gross, VAT, and total. Verified totals were net 1.60, VAT 0.37, and total 1.97.
saveDocumentCreates the GS document. The verified response was {"return":"999900021%&=&OKDOC&=&","print_documents":[]}.
dt_list_recalc_stock_articles_lojasConfirms 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.