From 2bdff1822add1273760cef70fed6e39ef16d1924 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 2 Mar 2010 14:54:38 +0100 Subject: [PATCH] (bug #4051) add due date in overdue.tmpl this add in the tmpl, the due date of each document. Signed-off-by: Henri-Damien LAURENT --- C4/Overdues.pm | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tmpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/Overdues.pm b/C4/Overdues.pm index e5e119eefa..79e51513e6 100644 --- a/C4/Overdues.pm +++ b/C4/Overdues.pm @@ -20,6 +20,7 @@ package C4::Overdues; use strict; use Date::Calc qw/Today Date_to_Days/; +use C4::Dates qw/format_date/; use Date::Manip qw/UnixDate/; use C4::Circulation; use C4::Context; @@ -268,6 +269,8 @@ sub GetOverduesByBorrowers{ my @issues = (); while(my $issuedata = $sthissues->fetchrow_hashref()){ + $issuedata->{date_due} = format_date($issuedata->{date_due}); + $issuedata->{issuedate} = format_date($issuedata->{issuedate}); push @issues, $issuedata; } $borrower->{overdues} = \@issues; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tmpl index 2d53e70c46..bdd98ae15b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tmpl @@ -55,7 +55,7 @@ - , by + , by , due the
-- 2.39.5