Test plan:
Try to print a fee
--> without patch it explodes
--> with patch it works and the date is formatted according to
system wide date format setting
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
[% USE Koha %]
[% USE Branches %]
+[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Print receipt for [% patron.cardnumber %]</title>
[% FOREACH account IN accounts %]
<tr class="highlight">
- <td>[% account.date %]</td>
+ <td>[% account.date | $KohaDates%]</td>
<td>
[% SWITCH account.accounttype %]
[% CASE 'Pay' %]Payment, thanks
}
my %row = (
- 'date' => dt_from_string( $accountline->{'date'}, dateonly => 1 ),
+ 'date' => dt_from_string( $accountline->{'date'} ),
'amountcredit' => $accountline->{'amountcredit'},
'amountoutstandingcredit' => $accountline->{'amountoutstandingcredit'},
'description' => $accountline->{'description'},