Bugzilla – Attachment 22598 Details for
Bug 11171
The basket group is not displayed on the supplier list page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11171: Display basket group name on the supplier list page
Bug-11171-Display-basket-group-name-on-the-supplie.patch (text/plain), 3.16 KB, created by
Jonathan Druart
on 2013-10-30 14:52:43 UTC
(
hide
)
Description:
Bug 11171: Display basket group name on the supplier list page
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-10-30 14:52:43 UTC
Size:
3.16 KB
patch
obsolete
>From 85832d9d5e86f131e9f10a04060b92b699924376 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 30 Oct 2013 15:48:10 +0100 >Subject: [PATCH] Bug 11171: Display basket group name on the supplier list > page > >Test plan: >search supplier and verify the basket group column is filled. >--- > acqui/booksellers.pl | 6 ++++++ > .../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 11 +++++++++++ > 2 files changed, 17 insertions(+) > >diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl >index b106d20..e30b40a 100755 >--- a/acqui/booksellers.pl >+++ b/acqui/booksellers.pl >@@ -149,6 +149,12 @@ for my $vendor (@suppliers) { > $basket->{authorisedby_firstname} = $member->{firstname}; > $basket->{authorisedby_surname} = $member->{surname}; > } >+ if ($basket->{basketgroupid}) { >+ my $basketgroup = C4::Acquisition::GetBasketgroup($basket->{basketgroupid}); >+ if ($basketgroup) { >+ $basket->{basketgroup} = $basketgroup; >+ } >+ } > push @{$loop_basket}, $basket; > } > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index 3dae586..5ee7352 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -102,6 +102,7 @@ $(document).ready(function() { > <th>Items expected</th> > <th>Created by</th> > <th>Date</th> >+ <th>Basket group</th> > <th>Closed</th> > <th> </th> > </tr> >@@ -124,6 +125,16 @@ $(document).ready(function() { > </td> > <td><span title="[% basket.creationdate %]">[% basket.creationdate | $KohaDates %]</span></td> > <td> >+ [% IF basket.basketgroup %] >+ [% basketgroup = basket.basketgroup %] >+ [% IF basketgroup.closed %] >+ [% basketgroup.name %] (closed) >+ [% ELSE %] >+ <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basket.booksellerid %]&basketgroupid=[% basketgroup.id %]">[% basketgroup.name %]</a> >+ [% END %] >+ [% END %] >+ </td> >+ <td> > [% IF ( basket.closedate ) %] > <span title="[% basket.closedate %]">[% basket.closedate | $KohaDates %]</span> > [% ELSE %] >-- >1.7.10.4
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 11171
:
22598
|
22936
|
23130
|
23148
|
23149