From f79ad28017df63d6ff8a1abd09ed388870e96c98 Mon Sep 17 00:00:00 2001 From: Kyle M Hall 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 Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- 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 4d0e381c04..17d8f0969b 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 . -use C4::Accounts qw(recordpayment); +use Koha::Account; use parent qw(C4::SIP::ILS::Transaction); @@ -46,7 +46,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.39.5