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