req department
This commit is contained in:
parent
b7664772be
commit
67248e8fdc
@ -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);
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -144,7 +144,7 @@ if(!empty($POMaster))
|
||||
$ServiceDescription=$Req->ServiceDescription;
|
||||
}
|
||||
}
|
||||
//echo $DeliveryOption;
|
||||
echo $ServiceDescription;
|
||||
//echo $PaymentTerms;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user