req department

This commit is contained in:
venbatechnologies@gmail.com 2017-07-31 16:22:48 +05:30
parent b7664772be
commit 67248e8fdc
3 changed files with 7 additions and 2 deletions

View File

@ -33,6 +33,8 @@ class servicepurchaseorder extends BaseController
$this->global['pageTitle'] = 'Siddharth : Service Purchase Order for Billing'; $this->global['pageTitle'] = 'Siddharth : Service Purchase Order for Billing';
$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);

View File

@ -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();
} }
/** /**

View File

@ -144,7 +144,7 @@ if(!empty($POMaster))
$ServiceDescription=$Req->ServiceDescription; $ServiceDescription=$Req->ServiceDescription;
} }
} }
//echo $DeliveryOption; echo $ServiceDescription;
//echo $PaymentTerms; //echo $PaymentTerms;