Evidence Summary
- Create route
/vendas/ft/create- List route
/vendas/ft- Final view
/vendas/ft/view/OTk5OTAxNjY2- Workflow run
sales-invoice-ft-20260519T040734Z- Created invoice
999901666 / FT 9999/1666- Evidence file
raw/playwright/workflows/latest-sales-invoice-ft.json
When to Use This
Use Factura [FT] when issuing a normal sales invoice that remains receivable until a receipt/payment is later recorded. This differs from Factura / Recibo [FR], which requires a payment line during finalization and saves as paid/finished.
Step-by-Step
- Open Sales / Invoice [FT], then click Create Invoice, or navigate directly to
/vendas/ft/create. - Confirm the page title is OG - Invoice [FT] and the main action is Save and Finish. The same screen also offers Save Draft and Save and Print.
- In Vehicle & Entity, select the billing customer. The verified run used customer
910, 100 Ouvidos Lda, VAT509031862. - Review billing address, employee, commercial, tax zone, currency, payment term, and series. The verified run used employee
Demo, commercialComercial 1, payment termPP, and series9999. - Optionally enter a document Reference. The verified run used
AI-FT-20260519T040734Zso the invoice could be searched later. - Open Document / Doc. Lines and add the article. 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 final total1.97. - Click Save and Finish.
- Confirm the Are you sure? dialog with OK.
- OfficeGest posts
saveDocument, redirects to the FT view, and leaves the invoice in Open state. The verified save response was999901666%OK&=&OKDOC&=&. - Search the FT list for
999901666or referenceAI-FT-20260519T040734Z. The verified row showed total1.97, paid value0.00, and pending value1.97.
Verified Invoice Values
| Field | Value |
|---|---|
| Internal number | 999901666 |
| Visible document number | FT 9999/1666 |
| Reference | AI-FT-20260519T040734Z |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Status | ABR, visible as Open |
| Payment term | PP / Pronto Pagamento |
| Payment result | No payment modal was required; ValorPago=0 and pending value was 1.97. |
| Total | 1.97 |
| Stock effect | Warehouse 1 stock for article AI-DEMO-20260519-021105 changed from 2 to 1. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades | Loads customer master data for customer 910, including VAT, address, active status, and commercial context. |
DT_Select_AdiantamentosClientes | Checks customer advance documents before invoice save. |
findDocsPendentes | Checks customer pending documents and warnings. |
loadArtigoReducido&compras=F&tipoop=FT | Loads sales article metadata, stock, price, VAT, and cost. |
insertLinhaTabDoc | Inserts the article into temporary sales table 45602. |
listaTabDocumento | Loads invoice lines before save and on the final view. |
create_document&option=calcular_totais | Calculates gross, VAT, retention, and invoice total. |
checkProfitMargins | Validates margin rules before final save. |
saveDocument | Creates the finished/open FT invoice. The verified response was {"return":"999901666%OK&=&OKDOC&=&","print_documents":[]}. |
DT_List_Documentos | Verifies the created FT invoice in the list using table Fact, typesaft=FT, and tipoop=FT. |
dt_list_recalc_stock_articles_lojas | Verifies warehouse stock changed after finalization. |
Raw evidence: raw/playwright/workflows/sales-invoice-ft-20260519T040734Z.json. Screenshots: assets/screenshots/sales-invoice-ft-20260519T040734Z-01-create-page.png through assets/screenshots/sales-invoice-ft-20260519T040734Z-04-ft-list.png.
Validation Notes
- Open receivable: FT saved as
ABR/ Open with unpaid value. Use the receipts workflow later to settle it. - No payment modal: unlike FR, this FT run did not open the payment modal during save.
- Stock is updated immediately: the FT invoice reduced physical stock even though the invoice remained unpaid.
- Traceable references help: adding a unique reference made the invoice easy to confirm in
DT_List_Documentos.