From: Jonathan Druart Date: Wed, 15 Apr 2015 13:33:54 +0000 (+0200) Subject: Bug 10423: Show date due with time if it's a hourly loan X-Git-Tag: v3.20.00-beta~158 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=c0b51eafddb2721de247b2f0dd3b9a33048db13d;p=koha-ffzg.git Bug 10423: Show date due with time if it's a hourly loan On printing the summary from the patron account, the hours are not displayed if needed. The as_date_due flag should be set to display it correctly. Problem, GetPendingIssues modify the value retrieved from the database. In order to not add regression and check all calls to GetPendingIssues, this patch backup the value before the change. Test plan: Check some items out, specify a hourly loan for some. Click on print > print summary and confirm the date due are correctly formatted. Followed test plan. Date + time display as expected. Signed-off-by: Marc VĂ©ron Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt index 1d62a239f5..92526e8a9a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt @@ -50,7 +50,7 @@ [% issue.author %] [% issue.itemcallnumber %] [% issue.itemtype_description %] - [% issue.date_due | $KohaDates %] + [% issue.date_due | $KohaDates as_due_date => 1 %] [% issue.barcode %] [% issue.charge %] [% issue.replacementprice %] diff --git a/members/summary-print.pl b/members/summary-print.pl index 39897db344..4530e14384 100755 --- a/members/summary-print.pl +++ b/members/summary-print.pl @@ -95,6 +95,8 @@ sub build_issue_data { $row{'charge'} = sprintf( "%.2f", $charge ); + $row{date_due} = $row{date_due_sql}; + push( @{$return}, \%row ); }