Costcode error fixed

This commit is contained in:
gandhimathi Bharathirajan 2017-06-09 11:59:29 +05:30
parent 13ee8a66cd
commit 55f455a0e1

View File

@ -79,10 +79,10 @@ class purchaseorder_model extends CI_Model
* This function is used to get the Raw Material information * This function is used to get the Raw Material information
* @return array $result : This is result of the query * @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(); $result ->next_result();
@ -170,7 +170,7 @@ class purchaseorder_model extends CI_Model
function getRequistDetails($ReqNoList='') function getRequistDetails($ReqNoList='')
{ {
$this->db->distinct(); $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->from('T_Requestion_Master mast');
$this->db->join('T_Employee_Details emp', 'mast.Requestedby = emp.EmpID'); $this->db->join('T_Employee_Details emp', 'mast.Requestedby = emp.EmpID');
$this->db->join('T_DepartmentDetails Dept', 'emp.Departmentcode = Dept.DEPCode'); $this->db->join('T_DepartmentDetails Dept', 'emp.Departmentcode = Dept.DEPCode');