PDF generater added

This commit is contained in:
gandhimathi Bharathirajan 2017-04-22 13:14:06 +05:30
parent 477db8bc1a
commit 4f6f599666

View File

@ -118,15 +118,19 @@ class Payroll_model extends CI_Model
* This function is used to get the PayOn details from T_Payroll_File * This function is used to get the PayOn details from T_Payroll_File
* @return array $result : This is result of the query * @return array $result : This is result of the query
*/ */
function getEmployeelist() function getEmployeelist($Payon ='')
{ {
$this->db->select('Pay.EmpID as EmpId,Emp.FirstName as Fname,Emp.LastName as Lname'); $this->db->select('Pay.EmpID as EmpId,Emp.FirstName as Fname,Emp.LastName as Lname');
$this->db->from('T_Payroll Pay'); $this->db->from('T_Payroll Pay');
$this->db->join('T_Employee_Details Emp', 'Pay.EmpID = Emp.EmpID','left'); $this->db->join('T_Employee_Details Emp', 'Pay.EmpID = Emp.EmpID','left');
if($Payon != '')
{
$this->db->where('Pay.PayOn', $Payon);
}
$this->db->order_by("Pay.EmpID", "asc"); $this->db->order_by("Pay.EmpID", "asc");
$query = $this->db->get(); $query = $this->db->get();
return $query->result(); return $query;
} }
/* *//** /* *//**
* This function is used to get the PayOn details from T_Payroll_File * This function is used to get the PayOn details from T_Payroll_File
@ -142,5 +146,19 @@ class Payroll_model extends CI_Model
return $query->result_array(); return $query->result_array();
} }
/* *//**
* This function is used to delete the PayOn details from T_Payroll
* @return array $result : This is result of the query
*/
function deleteFileData($PayOn='')
{
$this->db->where("PayOn", $PayOn);
$this->db->delete('T_Payroll');
}
} }
?> ?>