Evidence Summary
- Create route
/vendas/fp/create- List route
/vendas/fp- Final view
/vendas/fp/view/OTk5OTAwMDY2- Workflow run
proforma-invoice-fp-20260520T002252Z- Created document
999900066 / FP 9999/66- Evidence file
raw/playwright/workflows/latest-proforma-invoice-fp.json
When to Use This
Use Pro-Forma Invoice [FP] when you need a non-fiscal sales document to quote or request payment before issuing a real invoice. In the verified demo, FP did not require payment, did not update stock, and stayed open with a pending value.
Step-by-Step
- Open Sales / Pro-Forma Invoice [FP], then click Create Pro Forma Invoice, or navigate directly to
/vendas/fp/create. - Confirm the page title is OG - Pro-Forma Invoice [FP]. The screen offers Save Draft, Save and Print, and Save and Finish.
- Select the billing customer. The verified run used customer
910, 100 Ouvidos Lda, VAT509031862. - Review address, employee, commercial, payment term, and series. The verified run used employee
Demo, commercialComercial 1, payment termPP, and series9999. - Optionally enter a unique Reference. The verified run used
AI-FP-20260520T002252Z. - Add the article line. The verified line used article
AI-DEMO-20260519-021105, quantity1, warehouse1, unit price1.60, VAT23%, and total1.97. - Review totals: gross
1.60, VAT0.37, and total1.97. - Click Save and Finish, then confirm the Are you sure? dialog if shown.
- OfficeGest posts
saveDocument, redirects to the FP view, and leaves the pro-forma invoice open. The verified save response was999900066%OK&=&OKDOC&=&. - Search the FP list for
999900066or referenceAI-FP-20260520T002252Z. The verified row showed statusABR/ Open, paid value0.00, and pending value1.97.
Verified Pro-Forma Values
| Field | Value |
|---|---|
| Internal number | 999900066 |
| Visible document number | FP 9999/66 |
| Reference | AI-FP-20260520T002252Z |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Status | ABR, visible as Open |
| Payment result | No payment modal was required; ValorPago=0 and pending value was 1.97. |
| Total | 1.97 |
| Stock/order effect | Warehouse 1 stock stayed -41. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
DT_List_Documentos&table=FactP | Loads and verifies pro-forma invoices with typesaft=WPF, tipoop=FP, and actualizacc=F. |
NameEntidades | Loads customer master data for customer 910. |
findDocsPendentes | Checks customer pending documents during customer selection. |
loadArtigoReducido&compras=F&tipoop=FP | Loads sales article metadata with actualizastocks=F. |
insertLinhaTabDoc | Inserts the article into the temporary sales table. |
listaTabDocumento | Loads pro-forma lines before save and on the final view. |
create_document&option=calcular_totais | Calculates gross, VAT, retention, and total. |
checkProfitMargins | Validates margin rules before save. |
saveDocument | Creates the open FP document. The verified response was {"return":"999900066%OK&=&OKDOC&=&","print_documents":[]}. |
dt_list_recalc_stock_articles_lojas | Confirms stock/order quantities stayed unchanged. |
Raw evidence: raw/playwright/workflows/proforma-invoice-fp-20260520T002252Z.json. Screenshots: assets/screenshots/proforma-invoice-fp-20260520T002252Z-01-create-page.png through assets/screenshots/proforma-invoice-fp-20260520T002252Z-04-fp-list.png.