From 131659fbec032b1a3964e2183936fe8147daa46e Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 7 Nov 2017 07:03:02 +0000 Subject: [PATCH] Report filename mismatched - fixed --- application/controllers/payslip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/payslip.php b/application/controllers/payslip.php index dfae35e3..b4f548b3 100755 --- a/application/controllers/payslip.php +++ b/application/controllers/payslip.php @@ -210,7 +210,7 @@ function phpAlert($msg) { $this->excel->getActiveSheet()->getProtection()->setInsertRows(true); $this->excel->getActiveSheet()->getProtection()->setFormatCells(true); - $filename='EmployeePFReport.xls'; + $filename='EmployeePFReport'.$payon.'xls'; header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment;filename="'.$filename.'"'); header('Cache-Control: max-age=0'); @@ -350,7 +350,7 @@ function phpAlert($msg) { $this->excel->getActiveSheet()->getProtection()->setSort(true); $this->excel->getActiveSheet()->getProtection()->setInsertRows(true); $this->excel->getActiveSheet()->getProtection()->setFormatCells(true); - $filename='EmployeePFReport.xls'; + $filename='EmployeeESIReport'.$payon.'xls'; header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment;filename="'.$filename.'"'); header('Cache-Control: max-age=0');