Bugzilla – Attachment 43418 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 - Remove C4::Dates from members/printfeercpt.pl
Bug-14926---Remove-C4Dates-from-membersprintfeercp.patch (text/plain), 1.70 KB, created by
Jonathan Druart
on 2015-10-15 09:18:19 UTC
(
hide
)
Description:
Bug 14926 - Remove C4::Dates from members/printfeercpt.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-10-15 09:18:19 UTC
Size:
1.70 KB
patch
obsolete
>From d3027f04f73ac089dde593ff4b9c00699f30b3cf Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 29 Sep 2015 18:42:06 +0200 >Subject: [PATCH] Bug 14926 - Remove C4::Dates from members/printfeercpt.pl > >This patch removes C4::Dates from members/printfeercpt.pl > >To test: > >- Go to a patron's fines (members/boraccount.pl) and make sure that > he/she has made a payment >- Select 'Print' in the payment's line >- Verify that the payment date on the slip displays correctly > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised. Date displayed 2015-10-08 > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > members/printfeercpt.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/members/printfeercpt.pl b/members/printfeercpt.pl >index 8ffc49f..6d4d75a 100755 >--- a/members/printfeercpt.pl >+++ b/members/printfeercpt.pl >@@ -27,11 +27,11 @@ use warnings; > > use C4::Auth; > use C4::Output; >-use C4::Dates qw/format_date/; > use CGI qw ( -utf8 ); > use C4::Members; > use C4::Branch; > use C4::Accounts; >+use Koha::DateUtils; > > my $input=new CGI; > >@@ -89,7 +89,7 @@ for (my $i=0;$i<$numaccts;$i++){ > if($accts->[$i]{'amountoutstanding'} <= 0){ > $accts->[$i]{'amountoutstandingcredit'} = 1; > } >- my %row = ( 'date' => format_date($accts->[$i]{'date'}), >+ my %row = ( 'date' => output_pref({ dt => dt_from_string( $accts->[$i]{'date'} ), dateformat => 'iso', dateonly => 1 }), > '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