diff --git a/application/controllers/CostCenter.php b/application/controllers/CostCenter.php index 8946e981..a1481f94 100755 --- a/application/controllers/CostCenter.php +++ b/application/controllers/CostCenter.php @@ -307,6 +307,8 @@ class CostCenter extends BaseController $Budget = array('CostCenterCode'=>$CostCode, 'BudgetType'=>$BudgetType,'BudgetYear'=>$BudgetYear,'BudgetAmount'=>$BudgetAmount,'Remarks'=>$Remarks,'CreatedBy'=>$updatedBy,'createdDate'=>$updateddt,'UpdatedBy'=>$updatedBy,'UpdatedDate'=>$updateddt); $ExistYearBudget = $this->costcenter_model->CheckExistBudget($BudgetType,$BudgetYear,$CostCode); + + // print_r($Budget); if($ExistYearBudget){ $this->costcenter_model->updateBudget($Budget,$BudgetType,$BudgetYear,$CostCode); } diff --git a/application/views/editOldcost.php b/application/views/editOldcost.php index abbff4d9..aedcc3b4 100755 --- a/application/views/editOldcost.php +++ b/application/views/editOldcost.php @@ -457,10 +457,10 @@ $(function() { BudgetType ?> - - - - + + + + BudgetYear ?>