Bugzilla – Attachment 43290 Details for
Bug 14926
Remove C4::Dates from members/printfeercpt.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14926: Format the date according to the dateformat syspref
Bug-14926-Format-the-date-according-to-the-datefor.patch (text/plain), 1.94 KB, created by
Jonathan Druart
on 2015-10-09 08:26:52 UTC
(
hide
)
Description:
Bug 14926: Format the date according to the dateformat syspref
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-09 08:26:52 UTC
Size:
1.94 KB
patch
obsolete
>From a686b240884941410d350632861c79ba987a633a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Oct 2015 09:25:30 +0100 >Subject: [PATCH] Bug 14926: Format the date according to the dateformat > syspref > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt | 3 ++- > members/printfeercpt.pl | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >index 13a02e8..d99c1a9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tt >@@ -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 >diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl >index 6d4d75a..26d4057 100755 >--- a/members/printfeercpt.pl >+++ b/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'}, >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14926
:
42956
|
43143
|
43262
|
43290
|
43301
|
43418
|
43419