webERP Forum

Full Version: Tax report PDF file extension missing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

When I generate a PDF tax report from Tax.php, the resultant file downloaded has no file extension.

I am guessing that the relevant piece of code in Tax.php is:

Code:
$pdf->OutputD($_SESSION['DatabaseName'] . '_Tax_Report_' . Date('Y-m-d'));

Can anyone help with fixing this?

Andy.
Change this line to:

$pdf->OutputD($_SESSION['DatabaseName'] . '_Tax_Report_' . Date('Y-m-d') . '.pdf');

Thanks
Tim
Solved. Thanks Tim.