Bug 7235: Adding invoice number and vendor name to the moredetail page
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
This commit is contained in:
parent
a8aa3b05e3
commit
dcca450944
|
|
@ -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}) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue