Bugzilla – Attachment 7766 Details for
Bug 7235
Adding invoice number and vendor name to the moredetail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7235: Adding invoice number and vendor name to the moredetail page
SIGNED-OFF-Bug-7235-Adding-invoice-number-and-vend.patch (text/plain), 2.83 KB, created by
Katrin Fischer
on 2012-02-20 06:16:23 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7235: Adding invoice number and vendor name to the moredetail page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2012-02-20 06:16:23 UTC
Size:
2.83 KB
patch
obsolete
>From 02c84201db1b61826640cf5231d15b9ff1200ebc Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Tue, 20 Dec 2011 18:39:24 +1300 >Subject: [PATCH] [SIGNED-OFF] Bug 7235: Adding invoice number and vendor name > to the moredetail page > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > catalogue/moredetail.pl | 8 +++++++- > .../prog/en/modules/catalogue/moredetail.tt | 14 ++++++++++++-- > 2 files changed, 19 insertions(+), 3 deletions(-) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index f5bb904..d75e36f 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -27,7 +27,8 @@ use C4::Biblio; > use C4::Items; > use C4::Branch; > use C4::Acquisition; >-use C4::Output; >+use C4::Bookseller qw(GetBookSellerFromId); >+use C4::Output; # contains gettemplate > use C4::Auth; > use C4::Serials; > use C4::Dates qw/format_date/; >@@ -147,6 +148,11 @@ foreach my $item (@items){ > $item->{'ordernumber'} = $order->{'ordernumber'}; > $item->{'basketno'} = $order->{'basketno'}; > $item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'}; >+ if ($item->{'basketno'}){ >+ my $basket = GetBasket($item->{'basketno'}); >+ my $bookseller = GetBookSellerFromId($basket->{'booksellerid'}); >+ $item->{'vendor'} = $bookseller->{'name'}; >+ } > $item->{'datereceived'} = $order->{'datereceived'}; > > if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >index 57dac9a..e9cbe74 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -164,8 +164,18 @@ > [% END %] > [% ELSE %] > [% ITEM_DAT.dateaccessioned %] >- [% END %] </li> >- >+ [% END %] >+ </li> >+ [% IF ITEM_DAT.vendor %] >+ <li><span class="label">Vendor</span> >+ [% ITEM_DAT.vendor %] >+ </li> >+ [% IF ITEM_DAT.booksellerinvoicenumber %] >+ <li><span class="label">Invoice number</span> >+ [% ITEM_DAT.booksellerinvoicenumber %] >+ </li> >+ [% END %] >+ [% END %] > > <li><span class="label">Total Checkouts:</span>[% IF ( ITEM_DAT.issues ) %][% ITEM_DAT.issues %][% ELSE %]0[% END %] (<a href="/cgi-bin/koha/circ/bookcount.pl?&biblionumber=[% ITEM_DAT.biblionumber %]&bi=[% ITEM_DAT.biblioitemnumber %]&itm=[% ITEM_DAT.itemnumber %]">View item's checkout history</a>)</li> > >-- >1.7.5.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 7235
:
6315
|
6710
|
6711
|
6880
| 7766 |
7767
|
7794
|
7795
|
8258
|
8271
|
8290