Bugzilla – Attachment 6315 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]
patch
0001-bug_7235-Adding-invoice-number-and-vendor-name-to-th.patch (text/plain), 2.48 KB, created by
Srdjan Jankovic
on 2011-11-16 02:10:45 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2011-11-16 02:10:45 UTC
Size:
2.48 KB
patch
obsolete
>From b8813bf5332aa57a3c3cf5f7065a924d437c7f7d Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Wed, 16 Nov 2011 15:08:14 +1300 >Subject: [PATCH] bug_7235: Adding invoice number and vendor name to the moredetail page > >--- > catalogue/moredetail.pl | 8 +++++++- > .../prog/en/modules/catalogue/moredetail.tt | 7 ++++++- > 2 files changed, 13 insertions(+), 2 deletions(-) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index 6f6d10d..1f2a8e1 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/; >@@ -143,6 +144,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'}; >+ } > > if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) { > $item->{status_advisory} = 1; >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 86c8a3f..3b07ed0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -163,7 +163,12 @@ > [% ELSE %] > [% ITEM_DAT.dateaccessioned %] > [% END %] </li> >- >+ <li><span class="label">Vendor</span> >+ [% ITEM_DAT.vendor %] >+ </li> >+ <li><span class="label">Invoice number</span> >+ [% ITEM_DAT.booksellerinvoicenumber %] >+ </li> > > <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.6.5 >
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