Evidence Summary
- Create route
/compras/faf/create- List route
/compras/faf- Workflow run
supplier-invoice-faf-20260519T070810Z- Created invoice
999900342 / FAF 9999/342- Evidence file
raw/playwright/workflows/latest-supplier-invoice-faf.json
When to Use This
Use Supplier Invoice [FAF] to register a supplier invoice that increases purchase-side current account debt and, for stock-moving article lines, updates warehouse stock. The verified FAF saved as open and unpaid; it did not require a payment line during creation.
Step-by-Step
- Open Purchases / Supplier Invoice [FAF], then click Create Invoice Supplier, or navigate directly to
/compras/faf/create. - Confirm the page title is OG - Supplier Invoice [FAF]. The form carries hidden
TipoOp=FAF. - Select the supplier. The verified run used supplier
100, AI Demo Supplier 20260519T030323Z, VAT590303236. - Enter the supplier invoice/reference number in Supplier`s N.. The verified run used
AI-FAF-20260519T070810Z, checked byfindNumNoFornagainst tableFactF. - Confirm document dates, series
9999, collaboratorDemo, and payment conditionPP. The verified due date was20/05/2026. - Add the article line. The verified run used article
AI-DEMO-20260519-021105, quantity1, warehouse1, unit cost1.23, VAT23%, and total1.51. - Review totals. OfficeGest calculated net
1.23and rounded document total1.51. - Click Save and Finish.
- Confirm the Are you sure? dialog if shown.
- OfficeGest posts
saveDocument. The verified response was{"return":"999900342%&=&OKDOC&=&"}. - Verify the FAF list. Search
999900342on/compras/faf; the verified row showed statusABR/ Open, total1.51,ValorPago=0, and validationN/D. - Verify stock if the invoice includes stock-moving articles. The verified run changed warehouse
1stock from1to2.
Verified FAF Values
| Field | Value |
|---|---|
| Internal number | 999900342 |
| Visible document | FAF 9999/342 |
| Supplier reference | AI-FAF-20260519T070810Z |
| Supplier | [100] AI Demo Supplier 20260519T030323Z, VAT 590303236 |
| Route/list identity | /compras/faf, table FactF, tipoop=FAF, tipoterc=F, actualizacc=T, recibo=F. |
| Status | ABR / Open, validation N/D. |
| Total/payment | Total 1.51; paid value 0.00. |
| Stock effect | Warehouse 1 physical stock for the demo article changed from 1 to 2; customer-order quantity stayed 4; supplier-order quantity stayed 1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades&tabla=Forn | Loads supplier master data after selecting supplier 100. |
findNumNoForn | Checks duplicate supplier reference. The verified request used tabela=FactF, forn=100, and numnoforn=AI-FAF-20260519T070810Z. |
loadArtigoReducido&compras=T | Loads purchase article metadata, including cost 1.23, VAT 23, and current stock. |
insertLinhaTabDoc | Inserts the FAF line with id_tipoop=FAF, cliente=100, isforn=T, quantity 1, and warehouse 1. |
price_variation_article | Checks supplier/article price variation for supplier 100. |
create_document&option=calcular_totais | Calculates net, VAT, and total for the temporary document table. |
saveDocument | Saves the supplier invoice. The verified payload used TipoOp=FAF, MovimentaStock=1, id=47633, isedit=F, and israsc=0. |
DT_List_DocumentosF&table=FactF | Verifies the saved supplier invoice list row. |
dt_list_recalc_stock_articles_lojas | Verifies warehouse stock after saving the invoice. |
Raw evidence: raw/playwright/workflows/supplier-invoice-faf-20260519T070810Z.json. Probe evidence: raw/playwright/compras-faf-create-probe.json. Screenshots: assets/screenshots/supplier-invoice-faf-20260519T070810Z-01-create-page.png through assets/screenshots/supplier-invoice-faf-20260519T070810Z-04-faf-list.png.
Validation Notes
- FAF is not paid during creation: the verified document saved open with
ValorPago=0. Use supplier payment note workflows to settle it later. - Supplier reference is important: OfficeGest checks
NumNoFornfor duplicates inFactF. - Stock moves immediately: with
MovimentaStock=1, the verified normal article line increased warehouse stock when the invoice was saved.