From 25e3aa6f670ea9f0ff289fe02f54d6a8e9a02d0c Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Wed, 14 Nov 2018 16:12:06 +0530 Subject: [PATCH] stock --- application/models/batchcard_model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/models/batchcard_model.php b/application/models/batchcard_model.php index 362880e9..ac198ab9 100755 --- a/application/models/batchcard_model.php +++ b/application/models/batchcard_model.php @@ -1282,12 +1282,14 @@ where MaterialCode = ? and SupplierID=?'; function Get_Product_Supplier($MaterialCode,$type) { //echo $MaterialCode; + $ltype='%'.$type.'%'; + //echo $ltype; $this->db->select('mas.SupplierID,sup.SupplierName,mmas.MaterialCode,mmas.MaterialName'); $this->db->from('T_PurchaseOrder_Master mas'); $this->db->join('T_SupplierDetailsN sup','sup.SupplierID=mas.SupplierID'); $this->db->join('T_PurchaseOrder_LineItem line','line.PONO=mas.PONO'); $this->db->join('T_MaterialMaster mmas','mmas.MaterialCode=line.MaterialCode'); - $this->db->where('Category like',$type); + $this->db->where('Category like',$ltype); // $this->db->where('T_MaterialMaster.Category like','%Raw Material%'); $this->db->where('mmas.MaterialCode',$MaterialCode);