From 42af3bef9f82169f08cc6dcc5e1c27623f694f2e Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 25 Oct 2018 14:17:59 +0100 Subject: [PATCH] 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens (cherry picked from commit 4858c4f736d366701fa6a3f1def2727dd85c70ce) Signed-off-by: Martin Renvoize (cherry picked from commit ff2de8e181e864cd121e39e314fe6be4dbe8eb0b) Signed-off-by: Fridolin Somers --- C4/Circulation.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 30c42d5325..80db6b1561 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2852,7 +2852,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( @@ -3192,7 +3192,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; -- 2.39.5