Bugzilla – Attachment 43301 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]
[SIGNED-OFF]Bug 14926: Format the date according to the dateformat syspref
SIGNED-OFFBug-14926-Format-the-date-according-to-t.patch (text/plain), 2.08 KB, created by
Héctor Eduardo Castro Avalos
on 2015-10-09 14:50:37 UTC
(
hide
)
Description:
[SIGNED-OFF]Bug 14926: Format the date according to the dateformat syspref
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-10-09 14:50:37 UTC
Size:
2.08 KB
patch
obsolete
>From d8f4370da0c61619b5a9c4aff9c5fb0a6245b611 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] [SIGNED-OFF]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 >--- > 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'}, >-- >1.7.10.4
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