Bug 15900 [QA Followup] - Use Koha::Patrons instead of Koha::Borrowers

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>
This commit is contained in:
Kyle Hall 2016-09-06 14:08:42 +00:00
parent 2a4debf309
commit d2d65d3b0f

View file

@ -3836,7 +3836,7 @@ sub ProcessOfflineIssue {
sub ProcessOfflinePayment { sub ProcessOfflinePayment {
my $operation = shift; my $operation = shift;
my $patron = Koha::Borrowers->find( { cardnumber => $operation->{cardnumber} }); my $patron = Koha::Patrons->find( { cardnumber => $operation->{cardnumber} });
my $amount = $operation->{amount}; my $amount = $operation->{amount};
Koha::Account->new( { patron_id => $patron->id } )->pay( { amount => $amount } ); Koha::Account->new( { patron_id => $patron->id } )->pay( { amount => $amount } );