On the Sales Invoice page, I would like to add a button labeled "Download PDF". When this button is clicked, the system should directly download the sales invoice as a PDF file.
Currently, the process to download a sales invoice as a PDF involves several steps:
- On the Sales Invoice page, I press the "Print/Send" button.
- From the available options, I select the "Draft Invoice" button.
- Then, I choose the "Send To" option.
- Finally, I select the "PDF Document " to generate and download the invoice.
This multi-step process is time-consuming and could be simplified significantly by implementing a dedicated "Download PDF" button. This new functionality will improve efficiency and enhance the overall user experience by allowing invoices to be downloaded with a single click.
Can someone help me with the coding required to implement this feature?