cost center duplicate value
This commit is contained in:
parent
2853119efb
commit
e3d4a0a43c
@ -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);
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user