From b9c6163fc657a2524d43551cf263206e7611a0bb Mon Sep 17 00:00:00 2001 From: gandhimathi Bharathirajan Date: Wed, 9 Aug 2017 14:48:09 +0530 Subject: [PATCH] Sorting changed in table --- application/models/inwardgateregister_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/inwardgateregister_model.php b/application/models/inwardgateregister_model.php index bd94163f..daca1a7e 100755 --- a/application/models/inwardgateregister_model.php +++ b/application/models/inwardgateregister_model.php @@ -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());