Workflow

How to Change Quantity on a Sales Invoice Draft

Verified end to end. Demo run change-quantity-sales-invoice-draft-20260519T182947Z opened FT draft 474, changed the line quantity from 1 to 2, clicked Save Draft, and verified active draft 475 kept quantity 2.

Evidence Summary

Original draft
474 / /vendas/ft/rasc/NDc0
Active edited draft
475 / /vendas/ft/rasc/NDc1
Quantity
1 before, 2 after
Reference
AI-FT-DRAFT-20260519T182919Z-QTY2
Evidence file
raw/playwright/workflows/latest-change-quantity-sales-invoice-draft.json

Verified saved invoice draft quantity edit workflow

Step-by-Step

  1. Open the saved FT draft. The verified source was /vendas/ft/rasc/NDc0.
  2. Confirm the page is still OG - Invoice [FT] on a draft route.
  3. In the line grid, edit the Qty cell for the article line.
  4. Enter the new quantity and let OfficeGest recalculate totals. The verified quantity changed from 1 to 2.
  5. Click Save Draft.
  6. Use the new draft route returned by OfficeGest. The verified re-save returned OK:475.
  7. Reopen or refresh the active draft and confirm the changed quantity is still present.
  8. Do not treat the document as issued until you use Save and Finish. The verified final FT list search returned no final invoice rows.

Verified Values

FieldValue
Original draft474, route /vendas/ft/rasc/NDc0.
Active edited draft475, route /vendas/ft/rasc/NDc1.
Line resultRow count stayed 1; total quantity changed from 1 to 2.
Total with VATLine total with VAT changed from 1.96677 to 3.93354.
Final document listNo final FT rows were returned for reference AI-FT-DRAFT-20260519T182919Z-QTY2.
Stock effectWarehouse 1 stock stayed at -3 before and after the draft quantity change.

Backend Calls Observed

Action or endpointPurpose
updateEditableTabDocUpdates the draft line quantity with campo=Qtd.
listaTabDocumentoReloads the saved draft line grid after the edit.
create_document&option=calcular_totaisRecalculates totals after the quantity change.
saveRascunhoRe-saves the draft. The verified response returned draft 475.
DT_List_DocumentosConfirms the edited draft reference is not a finalized FT invoice.
dt_list_recalc_stock_articles_lojasConfirms no stock movement happened while the document remained a draft.

Raw evidence: raw/playwright/workflows/change-quantity-sales-invoice-draft-20260519T182947Z.json. Screenshots: assets/screenshots/change-quantity-sales-invoice-draft-20260519T182947Z-01-open-draft-before-quantity-change.png through assets/screenshots/change-quantity-sales-invoice-draft-20260519T182947Z-04-reopened-edited-draft.png.