Bugzilla – Attachment 71985 Details for
Bug 12001
GetMemberAccountRecords slows down display of patron details and checkout pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12001: (QA follow-up) Fix printinvoice page
Bug-12001-QA-follow-up-Fix-printinvoice-page.patch (text/plain), 1.97 KB, created by
Josef Moravec
on 2018-02-20 05:09:11 UTC
(
hide
)
Description:
Bug 12001: (QA follow-up) Fix printinvoice page
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-20 05:09:11 UTC
Size:
1.97 KB
patch
obsolete
>From 21a7fa3c61f014a5308faff271bf8083cd9ee1e8 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Mon, 19 Feb 2018 20:49:02 +0000 >Subject: [PATCH] Bug 12001: (QA follow-up) Fix printinvoice page > >Test plan: >Try to print a fee >--> without patch it explodes >--> with patch it works and the date is formatted according to >system wide date format setting > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt | 3 ++- > members/printinvoice.pl | 2 +- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt >index 62fb69d..151d945 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tt >+++ b/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' %] > <title>Print receipt for [% patron.cardnumber %]</title> >@@ -45,7 +46,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/printinvoice.pl b/members/printinvoice.pl >index a75b0a6..5988325 100755 >--- a/members/printinvoice.pl >+++ b/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'}, >-- >2.1.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 12001
:
70314
|
70342
|
70343
|
70344
|
70345
|
70346
|
71798
|
71799
|
71800
|
71801
|
71802
|
71852
|
71853
|
71854
|
71855
|
71856
|
71857
|
71979
|
71980
|
71981
|
71982
|
71983
|
71984
| 71985 |
71986
|
71987
|
71988
|
77066
|
77136
|
77278
|
77279