Bug 15902 [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 M Hall 2016-09-06 14:05:11 +00:00
parent 94617acef6
commit 011d60823b
1 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ use C4::Stats;
use C4::BackgroundJob;
use Koha::Upload;
use Koha::Account;
use Koha::Patrons;
use Date::Calc qw( Add_Delta_Days Date_to_Days );
@ -364,7 +365,7 @@ sub kocMakePayment {
my $cardnumber = $circ->{cardnumber};
my $amount = $circ->{amount};
my $patron = Koha::Borrowers->find( { cardnumber => $cardnumber } );
my $patron = Koha::Patrons->find( { cardnumber => $cardnumber } );
Koha::Account->new( { patron_id => $patron->id } )
->pay( { amount => $amount } );