Evidence Summary
- Create route
/compras/aft/create- List route
/compras/aft- Final view
/compras/aft/view/OTk5OTAwMDAx- Workflow run
supplier-self-billing-aft-20260519T084109Z- Created document
999900001 / AFT 9999/1- Evidence file
raw/playwright/workflows/latest-supplier-self-billing-aft.json
When to Use This
Use Self-billing / Invoice autof. [AFT] when the company issues a supplier invoice under a self-billing arrangement. In the verified path AFT behaved as an open, unpaid supplier invoice, updated stock, and also carried accounting launch fields in the save payload.
Step-by-Step
- Open Purchases / Self-billing / Invoice autof. [AFT], then click Invoice autof., or navigate directly to
/compras/aft/create. - Confirm the form is using
TipoOp=AFT. - Select the Supplier. The verified run used supplier
100, AI Demo Supplier 20260519T030323Z, VAT590303236. - Enter a traceable value in Supplier`s N.. The verified run used
AI-AFT-20260519T084109Z. - Review document defaults: series
9999, employeeDemo, payment conditionPP, currencyEUR, and warehouse1. - Review the accounting fields if they are visible. The verified save used accounting launch date
19/05/2026and launch typeAccFactFMerc. - Add the article line. The verified line used article
AI-DEMO-20260519-021105, quantity1, unit cost1.23, VAT23%, and total1.51. - Click Save and Finish.
- Confirm the Are you sure? dialog with OK.
- OfficeGest posts
saveDocument, redirects to the AFT view, and keeps the document in Open status. The verified save response created document999900001. - Search the AFT list for
999900001or the supplier reference. The verified list row had statusABR/ Open, validationN/D, total1.51, and paid value0. - Verify stock for stock-moving article lines. The verified run changed warehouse
1stock from6to7.
Verified AFT Values
| Field | Value |
|---|---|
| Internal number | 999900001 |
| Visible document number | AFT 9999/1 |
| Supplier reference | AI-AFT-20260519T084109Z |
| Internal reference | AI-AFT-REF-20260519T084109Z |
| Route/list identity | /compras/aft, table documaft, tipoop=AFT, tipoterc=F, actualizacc=T, recibo=F, draft typesaft=FT. |
| Accounting launch | data_lanc_contabilidade=19/05/2026, CodTipoLanc=AccFactFMerc. |
| Status | ABR / Open, validation N/D. |
| Total and payment | Total 1.51; no payment line; ValorPago=0. |
| Stock/order effect | Physical stock in warehouse 1 changed from 6 to 7; customer-order quantity stayed 4; supplier-order quantity stayed 2. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
dt_list_drafts | Loads AFT drafts with compras=T, search[TipoOp]=AFT, and typesaft=FT. |
listaTabDocumento&isforn=T | Loads the temporary supplier line table with tipoop=aft. |
loadArtigoReducido&compras=T | Loads purchase article metadata, including physical stock 6, customer-order quantity 4, supplier-order quantity 2, cost 1.23, and VAT 23. |
create_document&option=get_notas_entidade | Loads supplier notes for supplier 100 with tipoentidade=F. |
create_document&option=get_notas_artigo | Loads article notes for AI-DEMO-20260519-021105. |
saveDocument | Creates the open AFT. The verified payload used TipoOp=AFT, NumNoForn=AI-AFT-20260519T084109Z, CodTipoLanc=AccFactFMerc, data_lanc_contabilidade=19/05/2026, referencia=AI-AFT-REF-20260519T084109Z, MovimentaStock=1, id=48414, stockneg=NAO USAR, isedit=F, and israsc=0. |
listaTabDocumentoImpCustos | Loads cost allocation/import-cost lines on the saved AFT view. |
DT_List_DocumentosF | Verifies the document in the AFT list using table documaft, actualizacc=T, and tipoop=AFT. |
dt_list_recalc_stock_articles_lojas | Verifies warehouse stock after saving the AFT. |
Raw evidence: raw/playwright/workflows/supplier-self-billing-aft-20260519T084109Z.json. Screenshots: assets/screenshots/supplier-self-billing-aft-20260519T084109Z-01-create-page.png through assets/screenshots/supplier-self-billing-aft-20260519T084109Z-04-aft-list.png.