From a65b5f80d753247ff35aeb739f2b65fed72b485c Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Fri, 21 Apr 2017 12:27:39 +0530 Subject: [PATCH] PDF generater added --- application/models/Payroll_model.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/application/models/Payroll_model.php b/application/models/Payroll_model.php index c9dd4533..b583644b 100644 --- a/application/models/Payroll_model.php +++ b/application/models/Payroll_model.php @@ -128,7 +128,19 @@ class Payroll_model extends CI_Model $query = $this->db->get(); return $query->result(); } - + /* *//** + * This function is used to get the PayOn details from T_Payroll_File + * @return array $result : This is result of the query + */ + function getEmpAll() + { + $this->db->select('Pay.EmpID as EmpId'); + $this->db->from('T_Payroll Pay'); + $this->db->order_by("Pay.EmpID", "asc"); + + $query = $this->db->get(); + return $query->result_array(); + } } ?> \ No newline at end of file