);
my $active_currency = Koha::Acquisition::Currencies->get_active;
-$template->param( symbol => $active_currency->symbol,
- currency => $active_currency->currency
- );
+if ( $active_currency ) {
+ $template->param( symbol => $active_currency->symbol,
+ currency => $active_currency->currency
+ );
+}
my $op = $input->param('op') || 'list';
# ------- get periods stuff ------------------
-# USED FOR PERMISSION COMPARISON LATER
-my $borrower_id = $template->{VARS}->{'USER_INFO'}->{'borrowernumber'};
-
$template->param(
show_mine => $show_mine,
op => $op,
exit;
}
$dropbox_disabled = BudgetHasChildren($budget_id);
- my $patron = Koha::Patrons->find( $budget->{budget_owner_id} );
- $budget->{budget_owner_name} = ( $patron ? $patron->firstname . ' ' . $patron->surname : '' );
+ $budget->{budget_owner} = Koha::Patrons->find( $budget->{budget_owner_id} );
}
# build budget hierarchy
);
my @budgets = @{
- GetBudgetHierarchy( $$period{budget_period_id}, undef, ( $show_mine ? $borrower_id : 0 ))
+ GetBudgetHierarchy( $$period{budget_period_id}, undef, ( $show_mine ? $borrowernumber : 0 ))
};
my $period_total = 0;