Workflow

How to Print or Download a Sales Invoice PDF

Verified end to end. Demo run sales-invoice-print-pdf-20260519T212449Z opened FT 9999/1699, used Print / PDF, generated FT 9999-1699.pdf, and verified the download returned a real PDF file.

Evidence Summary

Invoice view
/vendas/ft/view/OTk5OTAxNjk5
Source invoice
999901699 / FT 9999/1699
Menu path
Print / PDF
Generated file
FT 9999-1699.pdf
Evidence file
raw/playwright/workflows/latest-sales-invoice-print-pdf.json

Verified sales invoice PDF print workflow

When to Use This

Use this after an invoice is already issued and visible in view mode. It is the right path when the user asks how to download, open, print, or save the PDF copy of a sales invoice.

Step-by-Step

  1. Open Sales / Invoice [FT].
  2. Find the invoice in the list and open its view page. The verified run used FT 9999/1699.
  3. On the invoice view action bar, click Print.
  4. Choose PDF. The menu item has id imprimirpdf in the page.
  5. Wait while OfficeGest generates the document. The observed backend call was action=imprimir.
  6. When the PDF opens or downloads, confirm the filename matches the invoice number. The verified file was FT 9999-1699.pdf.

Other Output Choices in the Same Menu

Menu itemUse it for
PDF OriginalGenerate the original archived PDF variant.
PDFGenerate the normal PDF copy. This is the verified path.
PDF SignedGenerate the signed PDF variant.
PrinterSend the generated document into the browser print flow.
Print TaloGenerate the receipt-ticket style output.
OfferGenerate an offer/pricing-hidden variant.
Electronic InvoicingGenerate the electronic invoicing output.
E. Invoicing AssinadoGenerate the signed electronic invoicing output.
ExcelGenerate an Excel output.

The invoice view also has a Communicate menu with SMS, Whatsapp, Send email, and Copy document`s public link. Those send/link actions are separate workflows from PDF generation.

Verified Behavior

CheckObserved result
Print menu availabilityThe saved FT view exposed dropdown_btn_imprimir with PDF Original, PDF, PDF Signed, Printer, Print Talo, Offer, electronic invoicing choices, and Excel.
PDF generation callOfficeGest posted action=imprimir, num=999901699, tipoop=FT, oficinas=T, impressao=F, talao=F, givearchive=F, and sign_doc=false.
Generation responseThe response was {"success":true,"file":"FT 9999-1699.pdf"}.
Download routeOfficeGest built /download/?docfl=... from the returned file name.
PDF verificationThe download returned status 200, content type application/pdf, 25990 bytes, and a %PDF-1.7 file header.

Backend Calls Observed

Action or endpointPurpose
countersLoads ticket counters attached to the invoice view.
listaTabDocumentoLoads the saved invoice line data shown on the view.
create_document&option=calcular_totaisRecalculates view totals for the existing FT.
imprimirGenerates the PDF file for the selected invoice.
/download/?docfl=...Downloads the generated PDF file.

Raw evidence: raw/playwright/workflows/sales-invoice-print-pdf-20260519T212449Z.json. Screenshots: assets/screenshots/sales-invoice-print-pdf-20260519T212449Z-01-saved-invoice-view.png and assets/screenshots/sales-invoice-print-pdf-20260519T212449Z-02-after-pdf-generation.png.