Bugzilla – Attachment 48338 Details for
Bug 15901
Remove use of recordpayment in C4::SIP::ILS::Transaction::FeePayment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15901 - Remove use of recordpayment in C4::SIP::ILS::Transaction::FeePayment
Bug-15901---Remove-use-of-recordpayment-in-C4SIPIL.patch (text/plain), 1.21 KB, created by
Kyle M Hall (khall)
on 2016-02-24 15:30:38 UTC
(
hide
)
Description:
Bug 15901 - Remove use of recordpayment in C4::SIP::ILS::Transaction::FeePayment
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-02-24 15:30:38 UTC
Size:
1.21 KB
patch
obsolete
>From 4bbde5141c4f51e8fc7a6bcc5621cc2d9124b020 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 24 Feb 2016 15:13:24 +0000 >Subject: [PATCH] Bug 15901 - Remove use of recordpayment in > C4::SIP::ILS::Transaction::FeePayment > >Test plan: >1) Apply this patch >2) Make a payment via SIP2 >3) The payment should succeed >--- > C4/SIP/ILS/Transaction/FeePayment.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/SIP/ILS/Transaction/FeePayment.pm b/C4/SIP/ILS/Transaction/FeePayment.pm >index 47f6ba9..ae33e2d 100644 >--- a/C4/SIP/ILS/Transaction/FeePayment.pm >+++ b/C4/SIP/ILS/Transaction/FeePayment.pm >@@ -20,7 +20,7 @@ use strict; > # You should have received a copy of the GNU General Public License > # along with Koha; if not, see <http://www.gnu.org/licenses>. > >-use C4::Accounts qw(recordpayment); >+use Koha::Account; > use parent qw(C4::SIP::ILS::Transaction); > > >@@ -47,7 +47,7 @@ sub pay { > my $amt = shift; > my $type = shift; > warn("RECORD:$borrowernumber::$amt"); >- recordpayment( $borrowernumber, $amt,$type ); >+ Koha::Account->new( { patron_id => $borrowernumber } )->pay( { amount => $amt, sip => $type } ); > } > > #sub DESTROY { >-- >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 15901
:
48338
|
52143
|
54747
|
55874