diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 55c88893..3a3045a7 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -79,10 +79,10 @@ class purchaseorder_model extends CI_Model * This function is used to get the Raw Material information * @return array $result : This is result of the query */ - function getRawPOMaterialList($Req_No,$IsArray='') + function getRawPOMaterialList($ReqNo,$IsArray='') { - $result = $this->db-> query("CALL P_PURCHASEORDER_DETAILS()") or die(mysql_error()); + $result = $this->db-> query("CALL P_GET_REQUISTIONLIST('".$ReqNo."')") or die(mysql_error()); $result ->next_result(); @@ -170,7 +170,7 @@ class purchaseorder_model extends CI_Model function getRequistDetails($ReqNoList='') { $this->db->distinct(); - $this->db->select('ReqNo,ReqType,Status,Requestedby,mast.CreatedDate,emp.FirstName,emp.EmpID,emp.Designation, Dept.DEPCode,Dept.DepartmentName,mast.ReqDate'); + $this->db->select('ReqNo,ReqType,Status,Requestedby,mast.CreatedDate,emp.FirstName,emp.EmpID,emp.Designation, Dept.DEPCode,Dept.DepartmentName,mast.ReqDate,mast.CostCenterCode'); $this->db->from('T_Requestion_Master mast'); $this->db->join('T_Employee_Details emp', 'mast.Requestedby = emp.EmpID'); $this->db->join('T_DepartmentDetails Dept', 'emp.Departmentcode = Dept.DEPCode');