Lines 231-236
if ($op eq 'add_form') {
Link Here
|
231 |
# END $OP eq DELETE_CONFIRM |
231 |
# END $OP eq DELETE_CONFIRM |
232 |
# called by delete_confirm, used to effectively confirm deletion of data in DB |
232 |
# called by delete_confirm, used to effectively confirm deletion of data in DB |
233 |
} elsif ( $op eq 'delete_confirmed' ) { |
233 |
} elsif ( $op eq 'delete_confirmed' ) { |
|
|
234 |
if ( BudgetHasChildren( $budget_id ) ) { |
235 |
# We should never be here, the interface does not provide this action. |
236 |
die("Delete a fund with children is not possible"); |
237 |
} |
234 |
my $rc = DelBudget($budget_id); |
238 |
my $rc = DelBudget($budget_id); |
235 |
$op = 'list'; |
239 |
$op = 'list'; |
236 |
} elsif( $op eq 'add_validate' ) { |
240 |
} elsif( $op eq 'add_validate' ) { |
Lines 330-335
if ( $op eq 'list' ) {
Link Here
|
330 |
@budget_hierarchy = reverse(@budget_hierarchy); |
334 |
@budget_hierarchy = reverse(@budget_hierarchy); |
331 |
|
335 |
|
332 |
$budget->{budget_hierarchy} = \@budget_hierarchy; |
336 |
$budget->{budget_hierarchy} = \@budget_hierarchy; |
|
|
337 |
|
338 |
$budget->{budget_has_children} = BudgetHasChildren( $budget->{budget_id} ); |
333 |
} |
339 |
} |
334 |
|
340 |
|
335 |
my $budget_period_total = $period->{budget_period_total}; |
341 |
my $budget_period_total = $period->{budget_period_total}; |