diff --git a/application/models/requistion_model.php b/application/models/requistion_model.php index 2de55a5e..8848e912 100755 --- a/application/models/requistion_model.php +++ b/application/models/requistion_model.php @@ -59,7 +59,7 @@ ifnull(Po.Quantity,0) as POQTY,sta.StatusName left join T_PurchaseOrder_Master POmast on POmast.PONO=Po.PONO and Po.MaterialCode = Req.MaterialCode join T_Status sta on sta.StatusCode = Req.Status - where Req.ReqNo = ? and POmast.Status=?'; + where Req.ReqNo = ? and POmast.Status != ?'; $query = $this->db->query($subQuery, array($ReqNo,PO_AMENDED));