From 67248e8fdc3caec3b20300a1e913400bd03491d3 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Mon, 31 Jul 2017 16:22:48 +0530 Subject: [PATCH] req department --- application/controllers/servicepurchaseorder.php | 2 ++ application/models/purchaseorder_model.php | 5 ++++- application/views/editimportpo.php | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/application/controllers/servicepurchaseorder.php b/application/controllers/servicepurchaseorder.php index 3842bfce..f56fc376 100755 --- a/application/controllers/servicepurchaseorder.php +++ b/application/controllers/servicepurchaseorder.php @@ -33,6 +33,8 @@ class servicepurchaseorder extends BaseController $this->global['pageTitle'] = 'Siddharth : Service Purchase Order for Billing'; $data["Billing"] = $this->purchaseorder_model->GetServicePOListforBilling(); + + //print_r($data["Billing"]); $this->loadViews("serviceporeport", $this->global,$data,null); diff --git a/application/models/purchaseorder_model.php b/application/models/purchaseorder_model.php index 5830d2e0..e37133d1 100755 --- a/application/models/purchaseorder_model.php +++ b/application/models/purchaseorder_model.php @@ -53,13 +53,16 @@ class purchaseorder_model extends CI_Model join T_Status Stat on Stat.StatusCode = POMast.Status join T_Requestion_Master mast on mast.ReqNo = LineItem.ReqNo 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_CostCenter_Master Cost on Cost.CostCenterCode=LineItem.CostCenterCode where POMast.POType=? and ServiceWorkStatus=?'; $query = $this->db->query($subQuery,array(SERVICE,SERVICE_COMPLETED)); + + //print_r( $this->db->last_query()); return $query->result(); + } /** diff --git a/application/views/editimportpo.php b/application/views/editimportpo.php index c7a95169..fe182f34 100644 --- a/application/views/editimportpo.php +++ b/application/views/editimportpo.php @@ -144,7 +144,7 @@ if(!empty($POMaster)) $ServiceDescription=$Req->ServiceDescription; } } -//echo $DeliveryOption; +echo $ServiceDescription; //echo $PaymentTerms;