cost center duplicate value

This commit is contained in:
venbatechnologies@gmail.com 2017-08-19 18:56:10 +05:30
parent 2853119efb
commit e3d4a0a43c
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -457,10 +457,10 @@ $(function() {
<tr id="<?php echo $index ?>">
<td align="left"><?php echo $record->BudgetType ?></td>
<input type="hidden" name="<?php echo 'BudgetType'.$index ?>" id="<?php echo 'BudgetType'.$index ?>" />
<input type="hidden" name="<?php echo 'BudgetYear'.$index ?>" id="<?php echo 'BudgetYear'.$index ?>" />
<input type="hidden" name="<?php echo 'BudgetAmount'.$index ?>" id="<?php echo 'BudgetAmount'.$index ?>" />
<input type="hidden" name="<?php echo 'Remarks'.$index ?>" id="<?php echo 'Remarks'.$index ?>" />
<input type="hidden" name="<?php echo 'BudgetType'.$index ?>" id="<?php echo 'BudgetType'.$index ?> " value="<?php echo $record->BudgetType; ?>" />
<input type="hidden" name="<?php echo 'BudgetYear'.$index ?>" id="<?php echo 'BudgetYear'.$index ?>" value="<?php echo $record->BudgetYear; ?>" />
<input type="hidden" name="<?php echo 'BudgetAmount'.$index ?>" id="<?php echo 'BudgetAmount'.$index ?>" value="<?php echo $record->BudgetAmount; ?>" />
<input type="hidden" name="<?php echo 'Remarks'.$index ?>" id="<?php echo 'Remarks'.$index ?>" value="<?php echo $record->Remarks; ?>" />
<td align="left"><?php echo $record->BudgetYear ?></td>