webERP Forum
Tax report PDF file extension missing - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (/forumdisplay.php?fid=8)
+--- Thread: Tax report PDF file extension missing (/showthread.php?tid=4420)



Tax report PDF file extension missing - afcouling - 07-19-2017 01:59 AM

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.


RE: Tax report PDF file extension missing - falkoner - 07-19-2017 03:56 AM

Change this line to:

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

Thanks
Tim


RE: Tax report PDF file extension missing - afcouling - 07-19-2017 04:50 AM

Solved. Thanks Tim.