Evidence Summary
- Create route
/vendas/ft/create- Portes control
#btn_Portesopens#modalPortes- Input
#valPortes/ Valor Total (S/ IVA)- Verified value
5.00before VAT- Created temporary line
PORTES001/ PORTES, VAT23, total with VAT6.15- Evidence file
raw/playwright/workflows/latest-sales-invoice-portes.json
When to Use This
Use Portes when shipping or freight must be charged as a document line. OfficeGest adds it to the same document-line grid as products and services, so it is included in VAT and totals before the invoice is saved.
Step-by-Step
- Open Sales / Invoice [FT], then click New document, or navigate directly to
/vendas/ft/create. - Select the customer and complete the mandatory document header fields.
- Add the normal product or service lines first. The verified run inserted one article line for customer
910. - In Doc. Lines / Options, click Portes.
- In the Portes modal, enter the shipping value before VAT in Valor Total (S/ IVA). The verified run entered
5.00. - Click Guardar in the modal.
- Review the new document line. The verified run added article
PORTES001with description PORTES, net value5.00, VAT23%, and total with VAT6.15. - Only after confirming the lines and totals, choose Save Draft, Save and Print, or Save and Finish.
Verified Behavior
| Check | Observed result |
|---|---|
| Modal | #btn_Portes opened #modalPortes with one numeric field, #valPortes, labelled Valor Total (S/ IVA). |
| Line count | The temporary grid changed from 1 base line to 2 lines after saving Portes. |
| Portes line | The added line used CodArtigo=PORTES001, DesignacaoOri=PORTES, TotalSIVA=5, IVA=23, and TotalCIVA=6.15. |
| Save boundary | No saveDocument, saveRascunho, print, payment, or delete request was submitted during the verified run. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
loadArtigoReducido / insertLinhaTabDoc | Loads and inserts the base invoice article line before adding Portes. |
lancar_novo_portes / insertLinhaTabDoc | Adds the shipping value as the configured Portes article line in the temporary FT grid. |
listaTabDocumento | Reloads the document-line grid so the new PORTES001 row appears. |
create_document&option=calcular_totais | Recalculates totals after the added shipping line. |
Raw evidence: raw/playwright/workflows/sales-invoice-portes-20260520T021905Z.json. Screenshots: assets/screenshots/sales-invoice-portes-20260520T021905Z-01-create-page.png through assets/screenshots/sales-invoice-portes-20260520T021905Z-03-portes-line-added.png.