Workflow

How to Change a Line Warehouse on a Sales Invoice

Verified end to end. Demo run sales-invoice-line-warehouse-20260519T203515Z changed an FT line from warehouse 1 to warehouse 2 / Armazém de Monos, saved FT 9999/1692, and verified the final FT line retained CodLoja=2.

Evidence Summary

Create route
/vendas/ft/create
Final view
/vendas/ft/view/OTk5OTAxNjky
Created invoice
999901692 / FT 9999/1692
Customer
[910] 100 Ouvidos Lda
Line warehouse
2 / Armazém de Monos
Evidence file
raw/playwright/workflows/latest-sales-invoice-line-warehouse.json

Verified sales invoice line warehouse workflow

When to Use This

Use a line warehouse change when the invoice line should consume or report stock from a warehouse different from the default. This is a line-level field and is separate from delivery/loading warehouse information.

Step-by-Step

  1. Open Sales / Invoice [FT], then click New document, or navigate directly to /vendas/ft/create.
  2. Select the customer and confirm the mandatory invoice fields. The verified run used customer 910, seller 1, and employee 1.
  3. Add the article line. The verified run inserted article AI-DEMO-20260519-021105, quantity 1, initial warehouse 1.
  4. In the document lines table, edit the Store / warehouse column for the line. The stored line field is CodLoja.
  5. Select the target warehouse. The verified run selected 2 / Armazém de Monos.
  6. Wait for the document-line grid to reload and confirm the line now holds CodLoja=2.
  7. Click Save and Finish.
  8. Confirm the warehouse-specific prompt: Will move stock a different warehouse of your preference. Confirm?
  9. Confirm the normal save prompt: Are you sure?
  10. Verify the saved invoice view still shows CodLoja=2 on the document line.

Observed Warehouse Choices

CodeLabel
1Armazém de Entradas
2Armazém de Monos
3Armazém 01 - Matérias Primas
4Armazém 02 - Produtos Acabados
7_Loja_Freamunde
9Consumo Interno

Verified Behavior

CheckObserved result
Before editThe inserted line had CodLoja=1.
Warehouse editupdateEditableTabDoc returned {"success":true,"msg":""} for campo=CodLoja and value=2.
After grid reloadThe line returned CodLoja=2.
Save promptsOfficeGest showed the warehouse-move confirmation first, then the normal Are you sure? confirmation.
Final viewThe saved FT line retained CodLoja=2.
List stateThe FT list returned FT 9999/1692 as ABR / Open with total and pending value 1.97.

Backend Calls Observed

Action or endpointPurpose
NameEntidadesLoads customer billing data after customer selection.
loadArtigoReducido / insertLinhaTabDocLoads and inserts the invoice article line.
updateEditableTabDocUpdates the line field CodLoja.
DT_TabDocumentoReloads the document-line grid after the warehouse edit.
saveDocumentSaves the final FT invoice after both confirmations.
DT_List_DocumentosVerifies the invoice list row after save.

Raw evidence: raw/playwright/workflows/sales-invoice-line-warehouse-20260519T203515Z.json. Screenshots: assets/screenshots/sales-invoice-line-warehouse-20260519T203515Z-01-create-page.png through assets/screenshots/sales-invoice-line-warehouse-20260519T203515Z-04-final-view.png.