Sorting changed in table

This commit is contained in:
gandhimathi Bharathirajan 2017-08-09 16:02:46 +05:30
parent b9c6163fc6
commit 54c96e89e7

View File

@ -56,7 +56,7 @@ class purchaseorder_model extends CI_Model
join T_Employee_Details emp on emp.EmpID = mast.Requestedby
join T_DepartmentDetails Dept on Dept.DEPCode = emp.Departmentcode
join T_CostCenter_Master Cost on Cost.CostCenterCode=LineItem.CostCenterCode
where POMast.POType=? and ServiceWorkStatus=?';
where POMast.POType=? and ServiceWorkStatus=? order by POMast.UpdatedOn desc';
$query = $this->db->query($subQuery,array(SERVICE,SERVICE_COMPLETED));
@ -111,6 +111,7 @@ function purchaseorderListing($forwhat='')
$this->db->where('POMast.Status !=',PO_AMENDED);
// $this->db->order_by('POMast.Status !=',PO_AMENDED);
}
$this->db->order_by('POMast.UpdatedOn','desc');
$query = $this->db->get();
//print_r( $this->db->last_query());
$result = $query->result();