Evidence Summary
- Create route
/vendas/ft/create- Document type
- Invoice [FT]
- Temporary line
AI-DEMO-20260519-021105, quantity1, VAT23%- VAT panel
23,00%, incidence1,60 EUR, VAT value0,37 EUR- Totals panel
- Net
1,60 EUR, VAT0,37 EUR, retention0,00%, total1,97 EUR - Evidence file
raw/playwright/workflows/latest-sales-invoice-totals.json
When to Use This
Use this before saving an invoice when the user asks how to verify tax, retention, discounts, or final payable value. The panels are read from the current draft lines and can be checked before choosing Save Draft, Save and Print, or Save and Finish.
Step-by-Step
- Open Sales / Invoice [FT], then click New document, or navigate to
/vendas/ft/create. - Select the billing customer and add the invoice lines.
- Scroll below the document-line grid.
- Read VAT rates / Taxas de IVA. Each row groups lines by tax rate and shows the rate, taxable incidence, and tax value.
- Read Other Data for the total payable after retention, profit margin, and quantity split between goods and services.
- Read Totals / TOTAIS for gross value, line discount, document discount, net total, VAT, retention, and final total.
- If the values are wrong, adjust the line price, VAT, discount, retention, or document discount before saving.
Verified Readout
| Panel | Observed result |
|---|---|
| VAT rates | Taxas de IVA TAXA INCIDÊNCIA VALOR 23,00% 1,60€ 0,37€. |
| Totals | Total ilíquido 1,60 EUR, Total Líquido 1,60 EUR, IVA 0,37 EUR, Retenção 0,00%, and Total 1,97 EUR. |
| Backend calculation | create_document&option=calcular_totais returned iliquido=1.599, iva=0.36777, retencao=0, total=1.97, and table_ivas[23]. |
| Safety boundary | No saveDocument, saveRascunho, print, payment, or delete request was submitted. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
loadArtigoReducido / insertLinhaTabDoc | Loads and inserts the temporary FT line used for the readout. |
listaTabDocumento | Loads the current document-line grid. |
create_document&option=calcular_totais | Calculates gross/net value, discounts, VAT table, retention, profit, article quantities, and final total. |
Raw evidence: raw/playwright/workflows/sales-invoice-totals-20260520T022740Z.json. Screenshots: assets/screenshots/sales-invoice-totals-20260520T022740Z-01-create-page.png through assets/screenshots/sales-invoice-totals-20260520T022740Z-03-totals-readout.png.