Costcode error fixed
This commit is contained in:
parent
13ee8a66cd
commit
55f455a0e1
@ -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');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user