Hello,
When the sales invoice report is printed in the screen, we have a option to save the report as PDF.
It saves in the the name "Show tax invoice" as default. Is there an option to save this name as Dynamically.
I need the PDF name to be Invoice no: XXX when user saves the report as PDF.
Please let me know if this is possible.
I have tried with creating a new controller class, extending the salesinvoicecontroller and there in the main method, i put it as follows,
but it it still saving in the name , Show TaX Invoice.
SalesInvoiceController formLetterController = SalesInvoiceController::construct(); formLetterController.parmArgs(_args); formLetterController.parmReportName(PrintMgmtDocType::construct(PrintMgmtDocumentType::SalesOrderInvoice).getDefaultReportFormat()); formLetterController.parmShowDialog(false); formLetterController.parmDialogCaption("XX");// here i pass the invoice number formLetterController.startOperation();