Bugzilla – Attachment 34126 Details for
Bug 12059
Publisher code always empty on invoice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12059: Publisher column on invoice page always empty
Bug-12059-Publisher-column-on-invoice-page-always-.patch (text/plain), 4.81 KB, created by
Jonathan Druart
on 2014-12-04 15:06:37 UTC
(
hide
)
Description:
Bug 12059: Publisher column on invoice page always empty
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-12-04 15:06:37 UTC
Size:
4.81 KB
patch
obsolete
>From 86244cfc4937f621d6131464c398a52549e39550 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Mon, 10 Nov 2014 09:55:52 +0100 >Subject: [PATCH] Bug 12059: Publisher column on invoice page always empty > >This patch moves the publisher information out of its own >always empty column into the Summary column below the title, >as it is on other acq pages. > >The information was never displaying, as publishercode is in >biblioitems and that table was not selected by GetInvoiceDetails. > >Also modified the code to take into account that UNIMARC uses >biblioitems.publicationyear and MARC21/NORMARC use bibio.copyrightdate >for the copyright year. > >To test: >- create an invoice for records that > - have a publication year > - have no publication year > - have a publisher... >- 'finish receiving' and check the invoice summary page > ...acqui/invoice.pl?invoiceid=? >- Make sure all the information displays now but didn't witout the patch. > >Signed-off-by: Paola Rossi <paola.rossi@cineca.it> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > C4/Acquisition.pm | 3 ++- > .../intranet-tmpl/prog/en/modules/acqui/invoice.tt | 19 +++++++++---------- > 2 files changed, 11 insertions(+), 11 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index ecf96fe..51d7102 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -2644,10 +2644,11 @@ sub GetInvoiceDetails { > my $invoice = $sth->fetchrow_hashref; > > $query = q{ >- SELECT aqorders.*, biblio.*, aqbasket.basketname >+ SELECT aqorders.*, biblio.*, biblioitems.*, aqbasket.basketname > FROM aqorders > LEFT JOIN aqbasket ON aqorders.basketno = aqbasket.basketno > LEFT JOIN biblio ON aqorders.biblionumber = biblio.biblionumber >+ LEFT JOIN biblioitems ON aqorders.biblionumber = biblioitems.biblionumber > WHERE invoiceid = ? > }; > $sth = $dbh->prepare($query); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >index 8056c1d..8c1850f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt >@@ -131,7 +131,6 @@ > <thead> > <tr> > <th>Summary</th> >- <th>Publisher</th> > <th>Library</th> > <th class="gste">Actual cost tax exc.</th> > <th class="gsti">Actual cost tax inc.</th> >@@ -146,18 +145,18 @@ > <tbody> > [% FOREACH order IN orders_loop %] > <tr> >- <td><p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a> >+ <td> >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">[% order.title %]</a> > [% IF ( order.author ) %] > <br /><em>by</em> [% order.author %] > [% END %] >- </p></td> >- <td> > [% IF ( order.publishercode ) %] >- <p>[% order.publishercode %] >- [% IF ( order.publicationyear ) %] >+ <br/>[% order.publishercode %] >+ [% IF order.publicationyear > 0 %] > - [% order.publicationyear %] >+ [% ELSIF ( order.copyrightdate > 0) %] >+ - [% order.copyrightdate %] > [% END %] >- </p> > [% END %] > </td> > <td><p>[% order.branchcode %]</p></td> >@@ -175,7 +174,7 @@ > <tfoot> > [% FOR tf IN foot_loop %] > <tr> >- <th colspan='3'>Total (GST [% tf.gstgsti %] %)</th> >+ <th colspan='2'>Total (GST [% tf.gstgsti %] %)</th> > <th class="gste"/><th class="gsti"/> > <th>[% tf.quantity %]</th> > <th class="gste">[% tf.totalgste %]</th> >@@ -186,7 +185,7 @@ > </tr> > [% END %] > <tr> >- <th colspan='3'>Total ([% currency %])</th> >+ <th colspan='2'>Total ([% currency %])</th> > <th class="gste"/><th class="gsti"/> > <th>[% total_quantity %]</th> > <th class="gste">[% total_gste %]</th> >@@ -196,7 +195,7 @@ > <th> </th> > </tr> > <tr> >- <th colspan="3">Total + Shipment cost ([% currency %])</th> >+ <th colspan="2">Total + Shipment cost ([% currency %])</th> > <th class="gste"></th> > <th class="gsti"></th> > <th>[% total_quantity %]</th> >-- >2.1.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 12059
:
33411
|
34088
| 34126 |
34127