Cost center

This commit is contained in:
gandhimathi Bharathirajan 2017-05-06 17:14:14 +05:30
parent bb44f1ea5a
commit 1ceb046765

View File

@ -159,16 +159,23 @@ class CostCenter extends BaseController
* This function is used load user edit information
* @param number $userId : Optional : This is user id
*/
function editOldcost($CostCenterID = NULL)
function editOldcost($CostCode = NULL)
{
if($CostCenterID == null)
{
redirect('costListing');
}
if($CostCode == '')
{
$CostCenterID = $_GET['CostCode'];
}
else
{
$CostCenterID = $CostCode; }
$data['Cost'] = $this->costcenter_model->getuserinfo($CostCenterID);
//$data['users'] = $this->purchaseorder_model->getusers();
$data['CostMaster'] = $this->costcenter_model->GetCostCenterMaster($CostCenterID);
$data['CostDepts'] = $this->costcenter_model->GetCostCenterDepartment($CostCenterID);
$data['CostBudget'] = $this->costcenter_model->GetCostCenterBudget($CostCenterID);
// $data['DeptList'] = $this->costcenter_model->GetDepartmentNotinCostCenter($CostCenterID);
$this->global['pageTitle'] = 'Siddharth : Edit Cost';