Bug 21641: (follow-up) Address wrong call method
This patch substitutes C4::Accounts->getnextacctno for
C4::Accounts::getnextacctno since getnextacctno is only expecting to be
passed a borrowernumber
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 4858c4f736)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
e79fac32c8
commit
ff2de8e181
|
|
@ -2851,7 +2851,7 @@ sub AddRenewal {
|
|||
# Charge a new rental fee, if applicable?
|
||||
my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber );
|
||||
if ( $charge > 0 ) {
|
||||
my $accountno = C4::Accounts->getnextacctno( $borrowernumber );
|
||||
my $accountno = C4::Accounts::getnextacctno( $borrowernumber );
|
||||
my $manager_id = 0;
|
||||
$manager_id = C4::Context->userenv->{'number'} if C4::Context->userenv;
|
||||
$sth = $dbh->prepare(
|
||||
|
|
@ -3191,7 +3191,7 @@ sub AddIssuingCharge {
|
|||
|
||||
# FIXME What if checkout does not exist?
|
||||
|
||||
my $nextaccntno = C4::Accounts->getnextacctno($checkout->borrowernumber);
|
||||
my $nextaccntno = C4::Accounts::getnextacctno( $checkout->borrowernumber );
|
||||
|
||||
my $manager_id = 0;
|
||||
$manager_id = C4::Context->userenv->{'number'} if C4::Context->userenv;
|
||||
|
|
|
|||
Loading…
Reference in New Issue