Lines 295-301
if ( $op eq 'list' ) {
Link Here
|
295 |
$budget->{'budget_remaining'} = $budget->{'budget_amount'} - $budget->{'budget_spent'} - $budget->{budget_ordered}; |
295 |
$budget->{'budget_remaining'} = $budget->{'budget_amount'} - $budget->{'budget_spent'} - $budget->{budget_ordered}; |
296 |
$budget->{'total_remaining'} = $budget->{'budget_amount'} - $budget->{'total_spent'} - $budget->{total_ordered}; |
296 |
$budget->{'total_remaining'} = $budget->{'budget_amount'} - $budget->{'total_spent'} - $budget->{total_ordered}; |
297 |
# adds to total - only if budget is a 'top-level' budget |
297 |
# adds to total - only if budget is a 'top-level' budget |
298 |
if ($budget->{depth} == 0) { |
298 |
unless ( defined $budget->{budget_parent_id} ) { |
299 |
$period_alloc_total += $budget->{'budget_amount'}; |
299 |
$period_alloc_total += $budget->{'budget_amount'}; |
300 |
$spent_total += $budget->{total_spent}; |
300 |
$spent_total += $budget->{total_spent}; |
301 |
$ordered_total += $budget->{total_ordered}; |
301 |
$ordered_total += $budget->{total_ordered}; |
302 |
- |
|
|