Sorting changed in table

This commit is contained in:
gandhimathi Bharathirajan 2017-08-09 14:48:09 +05:30
parent 6ffa08ee37
commit b9c6163fc6

View File

@ -24,7 +24,7 @@ class inwardgateregister_model extends CI_Model
$this->db->from('T_IGR_Master igr');
$this->db->join('T_PurchaseOrder_Master PO','igr.PONO = PO.PONO');
$this->db->join('T_SupplierDetailsN` sup','PO.SupplierID = sup.SupplierID');
$this->db->order_by('igr.CreatedDate','desc');
$query = $this->db->get();
$result = $query->result();
@ -128,7 +128,7 @@ class inwardgateregister_model extends CI_Model
$this->db->join('T_SupplierDetailsN sup', 'sup.SupplierID = POM.SupplierID');
$this->db->join('T_MaterialMaster MM', 'MM.MaterialCode = igrd.MaterialCode');
$this->db->where('igr.IGRNO',$IGRNO);
$query = $this->db->get();
// print_r( $this->db->last_query());