From: Chris Cormack Date: Wed, 4 Jan 2012 19:54:43 +0000 (+1300) Subject: Bug 7402 : Fixing the date formatting so links to the invoice page work X-Git-Tag: v3.08.00~606 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=b32d2d2165d8400713c75a764b7dd2cc0dfdc51d;p=koha_ffzg Bug 7402 : Fixing the date formatting so links to the invoice page work This depends on bug 929 Signed-off-by: Katrin Fischer Uses the new TT plugin to display the date, while using iso format to build a correct URL to the invoice page. Signed-off-by: Paul Poulain --- diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index bae7c07efb..0a96a02c4f 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1678,8 +1678,6 @@ sub GetHistory { $line->{count} = $cnt++; $line->{toggle} = 1 if $cnt % 2; push @order_loop, $line; - $line->{creationdate} = format_date( $line->{creationdate} ); - $line->{datereceived} = format_date( $line->{datereceived} ); $total_qty += $line->{'quantity'}; $total_qtyreceived += $line->{'quantityreceived'}; $total_price += $line->{'quantity'} * $line->{'ecost'}; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt index 9321cf9294..3385fb3b81 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -1,3 +1,4 @@ +[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] Koha › Acquisitions › [% IF ( suggestions_loop ) %]Orders search › Search Results[% ELSE %]Order search[% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -86,8 +87,8 @@ [% suggestions_loo.title |html %]
[% suggestions_loo.author %]
[% suggestions_loo.isbn %] [% suggestions_loo.name %] - [% suggestions_loo.creationdate %] - [% suggestions_loo.datereceived %] + [% suggestions_loo.creationdate | $KohaDates %] + [% suggestions_loo.datereceived | $KohaDates %] [% suggestions_loo.quantity %] [% suggestions_loo.ecost %]