Bugzilla – Attachment 54161 Details for
Bug 15903
Remove use of recordpayment in paycollect.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 15903 - Remove use of recordpayment in paycollect.pl
SIGNED-OFF-Bug-15903---Remove-use-of-recordpayment.patch (text/plain), 1.48 KB, created by
Owen Leonard
on 2016-08-08 13:48:16 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 15903 - Remove use of recordpayment in paycollect.pl
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2016-08-08 13:48:16 UTC
Size:
1.48 KB
patch
obsolete
>From 85a59a993b17bda6aa8f67ea271f28dbe52dc1ab Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 24 Feb 2016 15:25:04 +0000 >Subject: [PATCH] [SIGNED-OFF] Bug 15903 - Remove use of recordpayment in > paycollect.pl >Content-Type: text/plain; charset="utf-8" > >Test Plan: >1) Apply this patch >2) Pay a fine via the "Pay amount" button >3) Payment should succeed. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > members/paycollect.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/members/paycollect.pl b/members/paycollect.pl >index 5dd565c..8203c85 100755 >--- a/members/paycollect.pl >+++ b/members/paycollect.pl >@@ -30,6 +30,7 @@ use C4::Accounts; > use C4::Koha; > use C4::Branch; > use Koha::Patron::Images; >+use Koha::Account; > > my $input = CGI->new(); > >@@ -128,11 +129,10 @@ if ( $total_paid and $total_paid ne '0.00' ) { > recordpayment_selectaccts( $borrowernumber, $total_paid, \@acc, $note ); > } else { > my $note = $input->param('selected_accts_notes'); >- recordpayment( $borrowernumber, $total_paid, '', $note ); >+ Koha::Account->new( { patron_id => $borrowernumber } ) >+ ->pay( { amount => $total_paid, note => $note } ); > } > >-# recordpayment does not return success or failure so lets redisplay the boraccount >- > print $input->redirect( > "/cgi-bin/koha/members/boraccount.pl?borrowernumber=$borrowernumber" > ); >-- >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 15903
:
48340
|
49575
|
52145
|
54161
|
55877