Browse Source

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 <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
3.20.x
Jonathan Druart 9 years ago
committed by Tomas Cohen Arazi
parent
commit
c0b51eafdd
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
  2. 2
      members/summary-print.pl

2
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt

@ -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>

2
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 );
}

Loading…
Cancel
Save