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 <josef.moravec@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
d2d65d3b0f
commit
f79ad28017
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue