@@ -, +, @@
--> without patch it explodes
--> with patch it works and the date is formatted according to
---
koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt | 3 ++-
members/printinvoice.pl | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt
@@ -1,5 +1,6 @@
[% USE Koha %]
[% USE Branches %]
+[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Print receipt for [% patron.cardnumber %]
@@ -45,7 +46,7 @@
[% FOREACH account IN accounts %]
- [% account.date %] |
+ [% account.date | $KohaDates%] |
[% SWITCH account.accounttype %]
[% CASE 'Pay' %]Payment, thanks
--- a/members/printinvoice.pl
+++ a/members/printinvoice.pl
@@ -80,7 +80,7 @@ if ( $accountline->{'amountoutstanding'} <= 0 ) {
}
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'},
--
|