Since the initial submission of this patch, the module Koha::Borrowers
has been moved to Koha::Patrons. This patch changes the call from
Koha::Borrowers to Koha::Patrons.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
sub ProcessOfflinePayment {
my $operation = shift;
- my $patron = Koha::Borrowers->find( { cardnumber => $operation->{cardnumber} });
+ my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} });
my $amount = $operation->{amount};
Koha::Account->new( { patron_id => $patron->id } )->pay( { amount => $amount } );