Workflow

How to Create a Recuperacao FTM

Verified end to end. Demo run recovery-ftm-20260519T061803Z created recovery invoice FTM 9999/16 / 999900016, verified it through the FTM list, and confirmed warehouse stock reduction.

Evidence Summary

Create route
/vendas/ftm/create
List route
/vendas/ftm
Final view
/vendas/ftm/view/OTk5OTAwMDE2
Workflow run
recovery-ftm-20260519T061803Z
Created document
999900016 / FTM 9999/16
Evidence file
raw/playwright/workflows/latest-recovery-ftm.json

Verified Recuperacao FTM workflow

When to Use This

Use Recuperacao [FTM] for a recovery invoice document in the sales module. In the verified demo, FTM used the same vehicle/entity, delivery-method, retention, accounting, and stock-updating article-line behavior as the C. Interno CI flow, but saved under the FTM document type and list table.

Step-by-Step

  1. Open Sales / Recuperacao [FTM], then click New, or navigate directly to /vendas/ftm/create.
  2. Confirm the page title is OG - Recuperacao [FTM]. The primary save actions are Save Draft, Save and Print, and Save and Finish.
  3. Select the customer. The verified run used customer 910, 100 Ouvidos Lda, VAT 509031862.
  4. Review Vehicle & Entity. Vehicle fields were visible and Print vehicle data was checked, but the verified direct article-line FTM saved with license plate, brand, model, and mileage fields empty.
  5. Review Delivery Method. The verified run used load address Leiria, postal code 2400, country PRT, and discharge address from the customer master record in Moura.
  6. Confirm document series, employee, commercial, payment term, and currency. The verified run used series 9999, employee Demo, commercial Comercial 1, payment term PP, and currency EUR.
  7. Optionally enter a reference. The verified run used AI-FTM-20260519T061803Z.
  8. Add the article line. The verified run inserted article AI-DEMO-20260519-021105, quantity 1, warehouse 1, unit price 1.60, VAT 23%, and total 1.97.
  9. Click Save and Finish. OfficeGest showed the confirmation Are you sure?; confirm it to create the FTM.
  10. OfficeGest posts saveDocument, redirects to the FTM view, and creates an open recovery invoice. The verified save response was 999900016%OK&=&OKDOC&=&.
  11. Search the FTM list for 999900016. The verified row showed status ABR / Open, total 1.97, paid 0.00, pending 1.97, and payment term Pronto Pagamento.
  12. Check stock after saving. Warehouse 1 physical stock changed from 2 to 1; warehouse 2 stayed 0; customer-order and supplier-order quantities stayed unchanged.

Verified FTM Values

FieldValue
Internal number999900016
Visible document numberFTM 9999/16
Customer[910] 100 Ouvidos Lda, VAT 509031862
Route/list identity/vendas/ftm, table DocumFTM, typesaft=FT, tipoop=FTM, oficinas=T, recibo=F, actualizacc=T.
Vehicle fieldsdoc_CodEquipExt, doc_Viatura, doc_Marca, and doc_Modelo were present but blank in the verified direct-line save; imprimirviatura was checked.
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 effectWarehouse 1 physical stock changed from 2 to 1; warehouse 2 stayed 0; qtd_enc_cliente stayed 2; qtd_enc_forn stayed 1.

Backend Calls Observed

Action or endpointPurpose
DT_List_Documentos&table=DocumFTMLoads and verifies FTM documents with oficinas=T, recibo=F, actualizacc=T, typesaft=FT, and tipoop=FTM.
NameEntidades&tabla=ClienteLoads customer master data for customer 910, including VAT, address, seller, and employee context.
findDocsPendentesChecks pending customer documents for customer 910 during entity selection.
loadArtigoReducido / insertLinhaTabDocLoads the stock-updating article and inserts the FTM line. The inserted row used temporary table 47295, article AI-DEMO-20260519-021105, customer 910, warehouse 1, quantity 1, and document type FTM.
create_document&option=calcular_totaisCalculates gross, VAT, retention, and total. Verified totals were net 1.60, VAT 0.37, retention 0.00, and total 1.97.
checkProfitMarginsValidates profit margin rules for temporary table 47295 before saving.
saveDocumentCreates the FTM document. The verified response was {"return":"999900016%OK&=&OKDOC&=&","print_documents":[]}.
dt_list_recalc_stock_articles_lojasConfirms stock/order quantities after final save. Warehouse 1 physical stock changed from 2 to 1.

Raw evidence: raw/playwright/workflows/recovery-ftm-20260519T061803Z.json. Probe evidence: raw/playwright/vendas-ftm-create-probe.json. Screenshots: assets/screenshots/recovery-ftm-20260519T061803Z-01-create-page.png through assets/screenshots/recovery-ftm-20260519T061803Z-04-ftm-list.png.