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');