Bugzilla – Attachment 5601 Details for
Bug 6916
Selecting the acq date of an item should take you to the invoice page for it
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6916 - item's acq date now takes you to its invoice
Bug-6916---items-acq-date-now-takes-you-to-its-inv.patch (text/plain), 2.40 KB, created by
Robin Sheat
on 2011-09-26 23:43:04 UTC
(
hide
)
Description:
Bug 6916 - item's acq date now takes you to its invoice
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2011-09-26 23:43:04 UTC
Size:
2.40 KB
patch
obsolete
>From 3f261a5cf45fc168da7382269bffb8f399e4eda6 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Fri, 16 Jul 2010 14:45:58 +1200 >Subject: [PATCH] Bug 6916 - item's acq date now takes you to its invoice > >When viewing an item's details, selecting the accession date for it now >takes you to the invoice for that item. >--- > catalogue/moredetail.pl | 5 ++++- > .../prog/en/modules/catalogue/moredetail.tt | 2 +- > 2 files changed, 5 insertions(+), 2 deletions(-) > >diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl >index d285a49..69d4663 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -121,10 +121,13 @@ foreach my $item (@items){ > $item->{'datelastseen'} = format_date( $item->{'datelastseen'} ); > $item->{'copyvol'} = $item->{'copynumber'}; > >- my $order = GetOrderFromItemnumber( $item->{'itemnumber'} ); >+ my $order = GetOrderFromItemnumber( $item->{'itemnumber'} ); >+ my $basket = GetBasket( $order->{'basketno'} ); >+ $item->{'booksellerid'} = $basket->{'booksellerid'}; > $item->{'ordernumber'} = $order->{'ordernumber'}; > $item->{'basketno'} = $order->{'basketno'}; > $item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'}; >+ $item->{'datereceived'} = $order->{'datereceived'}; > > 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..36e7149 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -156,7 +156,7 @@ > > Accession Date:</span> > [% IF ( ITEM_DAT.basketno ) %] >- <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% ITEM_DAT.basketno %]">[% ITEM_DAT.dateaccessioned %]</a> >+ <a href="/cgi-bin/koha/acqui/parcel.pl?supplierid=[% ITEM_DAT.booksellerid %]&invoice=[% ITEM_DAT.booksellerinvoicenumber %]&datereceived=[% ITEM_DAT.datereceived %]">[% ITEM_DAT.dateaccessioned %]</a> > [% ELSE %] > [% ITEM_DAT.dateaccessioned %] > [% END %] >-- >1.7.4.1
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 6916
:
5601
|
5805
|
6062
|
6316
|
6388
|
6436