"Print as PDF" filename formatting

I’ve recently updated an old install to 7.8.31 which seemed to go OK, but users have noticed the pre-formatting of “Print as PDF” filenames has changed.

Prior to the upgrade users were offered a download PDF with a filename as follows;

“Quote_1234_Quote-Subject.pdf”

The offered filename includes $aos_quotes_number and $aos_quotes_name.

After the upgrade the system now prepares the PDF filename as;

“Quote_Quote-Subject.pdf”

$aos_quotes_number is no longer included in the filename.

I’d like to revert the PDF filename format to include the $aos_quotes_number in the filename, can anyone offer me some advice?

Resolved

The correct location to edit is “modules/AOS_PDF_Templates/generatePdf.php”

Modify,

if ($task == 'pdf' || $task == 'emailpdf') {
    $file_name = $mod_strings['LBL_PDF_NAME'] . "_" . str_replace(" ", "_", $bean->name) . ".pdf";

to,

if ($task == 'pdf' || $task == 'emailpdf') {
	    $file_name = $mod_strings['LBL_PDF_NAME'] . "_" . $bean->number."_".str_replace(" ", "_",$bean->name). ".pdf";