Evidence Summary
- Create route
/compras/frf/create- List route
/compras/frf- Workflow run
supplier-invoice-receipt-frf-20260519T072511Z- Created document
999900023 / FRF 9999/23- Evidence file
raw/playwright/workflows/latest-supplier-invoice-receipt-frf.json
When to Use This
Use Invoice / Receipt forn. [FRF] when a supplier invoice is registered and paid in the same workflow. It behaves like a supplier invoice with stock movement plus an immediate payment row, so the saved document finishes as paid instead of open.
Step-by-Step
- Open Purchases / Invoice / Receipt forn. [FRF], then click the create action, or navigate directly to
/compras/frf/create. - Confirm the page title is OG - Invoice / Receipt forn. [FRF]. The form includes hidden
TipoOp=FRFandMovimentaStock=1. - 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-FRF-20260519T072511Z, checked throughfindNumNoFornagainst tableFactRecF. - Confirm document date
19/05/2026, due date20/05/2026, series9999, collaboratorDemo, and payment conditionPP. - Add the article line. The verified run used article
AI-DEMO-20260519-021105, quantity1, warehouse1, unit cost1.23, VAT23%, and total1.51. - Click End.
- When the payment modal opens, choose [NUM] Numerario. OfficeGest creates a payment row for the full total.
- Click Save in the payment modal, then confirm the Are you sure? dialog.
- OfficeGest posts
saveDocument. The verified response was{"return":"999900023%&=&OKDOC&=&"}. - Verify the FRF list. Search
999900023on/compras/frf; the verified row showedFRF 9999/23, statusLIQ/ Finished, total1.51, andValorPago=1.51. - Verify stock if the document includes stock-moving articles. The verified run changed warehouse
1stock from2to3.
Verified FRF Values
| Field | Value |
|---|---|
| Internal number | 999900023 |
| Visible document | FRF 9999/23 |
| Supplier reference | AI-FRF-20260519T072511Z |
| Supplier | [100] AI Demo Supplier 20260519T030323Z, VAT 590303236 |
| Route/list identity | /compras/frf, table FactRecF, tipoop=FRF, tipoterc=F, actualizacc=T, recibo=F. |
| Status | LIQ / Finished, validation N/D. |
| Total/payment | Total 1.51; paid value 1.51; payment method NUM. |
| Stock effect | Warehouse 1 physical stock for the demo article changed from 2 to 3; 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=FactRecF, forn=100, and numnoforn=AI-FRF-20260519T072511Z. |
loadArtigoReducido&compras=T | Loads purchase article metadata, including current warehouse stock 2, cost 1.23, and VAT 23. |
insertLinhaTabDoc | Inserts the FRF line with id_tipoop=FRF, 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 FRF totals. The verified total was 1.51. |
payment&option=validate | Checks whether the payment total can cover the document before save. |
payment&option=add | Adds the payment row. The verified request used compras=T, entidade=100, modopagamento=NUM, modobase=N, total=1.51, and tipoop=FRF. |
saveDocument | Saves the supplier invoice/receipt. The verified payload used TipoOp=FRF, CodTipoLanc=AccVDinFMerc, NumNoForn=AI-FRF-20260519T072511Z, MovimentaStock=1, and id=47729. |
payment&option=get_payment | Loads payment data on the saved FRF view. |
DT_List_DocumentosF&table=FactRecF | Verifies the saved FRF list row. |
dt_list_recalc_stock_articles_lojas | Verifies warehouse stock after saving the FRF. |
Raw evidence: raw/playwright/workflows/supplier-invoice-receipt-frf-20260519T072511Z.json. Probe evidence: raw/playwright/compras-frf-create-probe.json. Screenshots: assets/screenshots/supplier-invoice-receipt-frf-20260519T072511Z-01-create-page.png through assets/screenshots/supplier-invoice-receipt-frf-20260519T072511Z-04-frf-list.png.
Validation Notes
- FRF is paid during creation: unlike FAF, the verified FRF required a payment modal before the final save and finished with
ValorPago=1.51. - Supplier reference is still required: OfficeGest checks
NumNoForninFactRecF. - Stock moves immediately: with
MovimentaStock=1, the verified normal article line increased warehouse stock when the document was saved. - Payment validation happens before save: OfficeGest called
payment&option=validatebefore and after the payment row was added.