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
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
- Open Sales / Invoice [FT], then click New document, or navigate directly to
/vendas/ft/create. - Select the customer and confirm the mandatory invoice fields. The verified run used customer
910, seller1, and employee1. - Add the article line. The verified run inserted article
AI-DEMO-20260519-021105, quantity1, initial warehouse1. - In the document lines table, edit the Store / warehouse column for the line. The stored line field is
CodLoja. - Select the target warehouse. The verified run selected
2/ Armazém de Monos. - Wait for the document-line grid to reload and confirm the line now holds
CodLoja=2. - Click Save and Finish.
- Confirm the warehouse-specific prompt: Will move stock a different warehouse of your preference. Confirm?
- Confirm the normal save prompt: Are you sure?
- Verify the saved invoice view still shows
CodLoja=2on the document line.
Observed Warehouse Choices
| Code | Label |
|---|---|
1 | Armazém de Entradas |
2 | Armazém de Monos |
3 | Armazém 01 - Matérias Primas |
4 | Armazém 02 - Produtos Acabados |
7 | _Loja_Freamunde |
9 | Consumo Interno |
Verified Behavior
| Check | Observed result |
|---|---|
| Before edit | The inserted line had CodLoja=1. |
| Warehouse edit | updateEditableTabDoc returned {"success":true,"msg":""} for campo=CodLoja and value=2. |
| After grid reload | The line returned CodLoja=2. |
| Save prompts | OfficeGest showed the warehouse-move confirmation first, then the normal Are you sure? confirmation. |
| Final view | The saved FT line retained CodLoja=2. |
| List state | The FT list returned FT 9999/1692 as ABR / Open with total and pending value 1.97. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades | Loads customer billing data after customer selection. |
loadArtigoReducido / insertLinhaTabDoc | Loads and inserts the invoice article line. |
updateEditableTabDoc | Updates the line field CodLoja. |
DT_TabDocumento | Reloads the document-line grid after the warehouse edit. |
saveDocument | Saves the final FT invoice after both confirmations. |
DT_List_Documentos | Verifies 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.