Bugzilla – Attachment 89095 Details for
Bug 4833
Show acquisition information when ordering from a suggestion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4833: Show acq information when selecting suggestion for order
Bug-4833-Show-acq-information-when-selecting-sugge.patch (text/plain), 4.15 KB, created by
Chris Cormack
on 2019-04-30 06:53:25 UTC
(
hide
)
Description:
Bug 4833: Show acq information when selecting suggestion for order
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2019-04-30 06:53:25 UTC
Size:
4.15 KB
patch
obsolete
>From 5d89149fa9e04839e8eaaf81390f31d500c56e54 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Mon, 11 Mar 2019 07:47:43 +0000 >Subject: [PATCH] Bug 4833: Show acq information when selecting suggestion for > order >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >When adding an order line to a basket using the 'from a suggestion' >feature, the list of accepted suggestions doesn't show any information >from the acquisition are of the suggestions. > >This patch adds new columns to the list for: >- library >- fund >- price >- quantity >- total > >To test: >- 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 > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > acqui/newordersuggestion.pl | 9 ++++++++ > .../prog/en/modules/acqui/newordersuggestion.tt | 24 ++++++++++++++++++++++ > 2 files changed, 33 insertions(+) > >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 @@ > <th>Suggestion</th> > <th>Suggested by</th> > <th>Accepted by</th> >+ <th>Library</th> >+ <th>Fund</th> >+ <th>Price</th> >+ <th>Quantity</th> >+ <th>Total</th> > <th> </th> > </tr> > </thead> >@@ -52,6 +59,23 @@ > <td> > [% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %],[% END %] [% suggestions_loo.firstnamemanagedby | html %] > </td> >+ <td> >+ [% Branches.GetName(suggestions_loo.branchcode) | html %] >+ </td> >+ <td> >+ [% suggestions_loo.budget_name | html %] >+ </td> >+ <td> >+ [% suggestions_loo.price | $Price %] >+ </td> >+ <td> >+ [% IF (suggestions_loo.quantity > 0) %] >+ [% suggestions_loo.quantity | html %] >+ [% END %] >+ </td> >+ <td> >+ [% suggestions_loo.total | $Price %] >+ </td> > <td class="actions"> > [% IF ( suggestions_loo.biblionumber ) %] > <a href="neworderempty.pl?booksellerid=[% booksellerid | uri %]&basketno=[% basketno | uri %]&suggestionid=[% suggestions_loo.suggestionid | uri %]&biblio=[% suggestions_loo.biblionumber | uri %]" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Order</a> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4833
:
86493
|
88272
| 89095 |
89618