diff --git a/acqui/newordersuggestion.pl b/acqui/newordersuggestion.pl index 6bc0a6462f..26065559e9 100755 --- a/acqui/newordersuggestion.pl +++ b/acqui/newordersuggestion.pl @@ -95,6 +95,7 @@ use C4::Auth; # get_template_and_user use C4::Output; use C4::Suggestions; use C4::Biblio; +use C4::Budgets; use Koha::Acquisition::Booksellers; @@ -136,6 +137,14 @@ my $suggestions_loop = SearchSuggestion( STATUS => 'ACCEPTED' } ); + +foreach my $suggestion (@$suggestions_loop) { + if ($suggestion->{budgetid}){ + my $bud = GetBudget( $suggestion->{budgetid} ); + $suggestion->{budget_name} = $bud->{budget_name} if $bud; + } +} + my $vendor = Koha::Acquisition::Booksellers->find( $booksellerid ); $template->param( suggestions_loop => $suggestions_loop, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt index 084ae32cc4..59ebf092ec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt @@ -1,4 +1,6 @@ [% USE raw %] +[% USE Branches %] +[% USE Price %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -27,6 +29,11 @@