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:
parent
2a4debf309
commit
d2d65d3b0f
1 changed files with 1 additions and 1 deletions
|
@ -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 } );
|
||||||
|
|
Loading…
Reference in a new issue