Paydata issue fixed
This commit is contained in:
parent
02fecfe91e
commit
3461c7f75b
@ -28,20 +28,15 @@ class monthlypay_model extends CI_Model
|
||||
|
||||
function getEmpPayDetails($current="",$s="")
|
||||
{
|
||||
//echo $s;die();
|
||||
if($s == ''){
|
||||
|
||||
$current = '01-'.$current;
|
||||
$current = date_create($current);
|
||||
$current = date_format($current,"Y-m-d");
|
||||
}
|
||||
$this->db->select('T_Emp_Pay_Data.EmpID,T_Employee_Details.FirstName,T_Employee_Details.LastName,T_Employee_Details.DateofJoining');
|
||||
$this->db->from('T_Emp_Pay_Data');
|
||||
$this->db->join('T_Employee_Details ','T_Emp_Pay_Data.EmpID=T_Employee_Details.EmpID');
|
||||
$this->db->where('T_Employee_Details.DateofJoining <=',$current);
|
||||
$this->db->select('T_Employee_Details.EmpID,T_Employee_Details.FirstName,T_Employee_Details.LastName,T_Employee_Details.DateofJoining');
|
||||
$this->db->from('T_Employee_Details');
|
||||
//$this->db->join('T_Emp_Pay_Data','T_Emp_Pay_Data.EmpID=T_Employee_Details.EmpID','Left');
|
||||
$this->db->where('T_Employee_Details.IsActive',1);
|
||||
$this->db->order_by('EmpID','asc');
|
||||
$query = $this->db->get();
|
||||
$result = $query->result();
|
||||
$result = $query->result();
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user