This commit is contained in:
venbatechnologies@gmail.com 2017-11-24 12:09:19 +05:30
parent df99285e34
commit 2ca70ade42

View File

@ -21,6 +21,8 @@ class mrir_model extends CI_Model
* @param number $segment : This is pagination limit * @param number $segment : This is pagination limit
* @return array $result : This is result * @return array $result : This is result
*/ */
function ViewigrListing() function ViewigrListing()
{ {
@ -29,7 +31,7 @@ class mrir_model extends CI_Model
$this->db->from('T_IGR_Master igr'); $this->db->from('T_IGR_Master igr');
$this->db->join('T_PurchaseOrder_Master PO','igr.PONO = PO.PONO'); $this->db->join('T_PurchaseOrder_Master PO','igr.PONO = PO.PONO');
$this->db->join('T_SupplierDetailsN` sup','PO.SupplierID = sup.SupplierID'); $this->db->join('T_SupplierDetailsN` sup','PO.SupplierID = sup.SupplierID');
// $this->db->where('igr.IGRStatus !=',MRIR_CREATED); $this->db->where('igr.IGRStatus !=',MRIR_CREATED);
$this->db->where('PO.IsQualityChkReqired',1); $this->db->where('PO.IsQualityChkReqired',1);
$this->db->order_by("CreatedDate","desc"); $this->db->order_by("CreatedDate","desc");
$query = $this->db->get(); $query = $this->db->get();