req department
This commit is contained in:
parent
b7664772be
commit
67248e8fdc
@ -34,6 +34,8 @@ class servicepurchaseorder extends BaseController
|
|||||||
|
|
||||||
$data["Billing"] = $this->purchaseorder_model->GetServicePOListforBilling();
|
$data["Billing"] = $this->purchaseorder_model->GetServicePOListforBilling();
|
||||||
|
|
||||||
|
//print_r($data["Billing"]);
|
||||||
|
|
||||||
$this->loadViews("serviceporeport", $this->global,$data,null);
|
$this->loadViews("serviceporeport", $this->global,$data,null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,13 +53,16 @@ class purchaseorder_model extends CI_Model
|
|||||||
join T_Status Stat on Stat.StatusCode = POMast.Status
|
join T_Status Stat on Stat.StatusCode = POMast.Status
|
||||||
join T_Requestion_Master mast on mast.ReqNo = LineItem.ReqNo
|
join T_Requestion_Master mast on mast.ReqNo = LineItem.ReqNo
|
||||||
join tbl_users users on users.userId = POMast.CreatedBy
|
join tbl_users users on users.userId = POMast.CreatedBy
|
||||||
join T_Employee_Details emp on emp.EmpID = users.EmpID
|
join T_Employee_Details emp on emp.EmpID = mast.Requestedby
|
||||||
join T_DepartmentDetails Dept on Dept.DEPCode = emp.Departmentcode
|
join T_DepartmentDetails Dept on Dept.DEPCode = emp.Departmentcode
|
||||||
join T_CostCenter_Master Cost on Cost.CostCenterCode=LineItem.CostCenterCode
|
join T_CostCenter_Master Cost on Cost.CostCenterCode=LineItem.CostCenterCode
|
||||||
where POMast.POType=? and ServiceWorkStatus=?';
|
where POMast.POType=? and ServiceWorkStatus=?';
|
||||||
|
|
||||||
$query = $this->db->query($subQuery,array(SERVICE,SERVICE_COMPLETED));
|
$query = $this->db->query($subQuery,array(SERVICE,SERVICE_COMPLETED));
|
||||||
|
|
||||||
|
//print_r( $this->db->last_query());
|
||||||
return $query->result();
|
return $query->result();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -144,7 +144,7 @@ if(!empty($POMaster))
|
|||||||
$ServiceDescription=$Req->ServiceDescription;
|
$ServiceDescription=$Req->ServiceDescription;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//echo $DeliveryOption;
|
echo $ServiceDescription;
|
||||||
//echo $PaymentTerms;
|
//echo $PaymentTerms;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user