Bug 14926: Format the date according to the dateformat syspref
Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised. Tested with the three values from dateformat syspref Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
4c10a8fb75
commit
de8076157e
|
|
@ -1,4 +1,5 @@
|
|||
[% USE Koha %]
|
||||
[% USE KohaDates %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Print Receipt for [% cardnumber %]</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
|
|
@ -42,7 +43,7 @@
|
|||
|
||||
[% FOREACH account IN accounts %]
|
||||
<tr class="highlight">
|
||||
<td>[% account.date %]</td>
|
||||
<td>[% account.date | $KohaDates %]</td>
|
||||
<td>
|
||||
[% SWITCH account.accounttype %]
|
||||
[% CASE 'Pay' %]Payment, thanks
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ for (my $i=0;$i<$numaccts;$i++){
|
|||
if($accts->[$i]{'amountoutstanding'} <= 0){
|
||||
$accts->[$i]{'amountoutstandingcredit'} = 1;
|
||||
}
|
||||
my %row = ( 'date' => output_pref({ dt => dt_from_string( $accts->[$i]{'date'} ), dateformat => 'iso', dateonly => 1 }),
|
||||
|
||||
my %row = ( 'date' => dt_from_string( $accts->[$i]{'date'} ),
|
||||
'amountcredit' => $accts->[$i]{'amountcredit'},
|
||||
'amountoutstandingcredit' => $accts->[$i]{'amountoutstandingcredit'},
|
||||
'toggle' => $accts->[$i]{'toggle'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue