@@ -, +, @@ order - library - fund - price - quantity - total - Create several suggestions with - Empty acq values - A specific library, any library - Set acq values (fund, price, quantity) - Accept your suggestions - Create a new basket/order - Add an order line from accepted suggestions - Verify the list displays nicely with the new columns - Verify filters etc. still work ok --- acqui/newordersuggestion.pl | 9 +++++++ .../en/modules/acqui/newordersuggestion.tt | 24 +++++++++++++++++++ 2 files changed, 33 insertions(+) --- a/acqui/newordersuggestion.pl +++ a/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, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/newordersuggestion.tt +++ a/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 @@ Suggestion Suggested by Accepted by + Library + Fund + Price + Quantity + Total   @@ -52,6 +59,23 @@ [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %] + + [% Branches.GetName(suggestions_loo.branchcode) | html %] + + + [% suggestions_loo.budget_name | html %] + + + [% suggestions_loo.price | $Price %] + + + [% IF (suggestions_loo.quantity > 0) %] + [% suggestions_loo.quantity | html %] + [% END %] + + + [% suggestions_loo.total | $Price %] + [% IF ( suggestions_loo.biblionumber ) %] Order --