@@ -, +, @@
dateformat syspref
---
koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt | 3 ++-
members/printfeercpt.pl | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt
@@ -1,4 +1,5 @@
[% USE Koha %]
+[% USE KohaDates %]
[% INCLUDE 'doc-head-open.inc' %]
Print Receipt for [% cardnumber %]
@@ -42,7 +43,7 @@
[% FOREACH account IN accounts %]
- [% account.date %] |
+ [% account.date | $KohaDates %] |
[% SWITCH account.accounttype %]
[% CASE 'Pay' %]Payment, thanks
--- a/members/printfeercpt.pl
+++ a/members/printfeercpt.pl
@@ -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'},
--
|