Bug 10423: Show date due with time if it's a hourly loan
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 15 Apr 2015 13:33:54 +0000 (15:33 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 24 Apr 2015 23:15:50 +0000 (20:15 -0300)
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 <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
members/summary-print.pl

index 1d62a23..92526e8 100644 (file)
@@ -50,7 +50,7 @@
                         <td>[% issue.author %]</td>
                         <td>[% issue.itemcallnumber %]</td>
                         <td>[% issue.itemtype_description %]</td>
-                        <td>[% issue.date_due | $KohaDates %]</td>
+                        <td>[% issue.date_due | $KohaDates as_due_date => 1 %]</td>
                         <td>[% issue.barcode %]</td>
                         <td>[% issue.charge %]</td>
                         <td>[% issue.replacementprice %]</td>
index 39897db..4530e14 100755 (executable)
@@ -95,6 +95,8 @@ sub build_issue_data {
 
         $row{'charge'} = sprintf( "%.2f", $charge );
 
+        $row{date_due} = $row{date_due_sql};
+
         push( @{$return}, \%row );
     }