Bug 21641: (follow-up) Address additional call
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Thu, 25 Oct 2018 12:23:31 +0000 (13:23 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 29 Oct 2018 00:22:17 +0000 (00:22 +0000)
This patch makes the same change as the main patch, just for an
additional occurance of getnextacctno

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>
C4/Circulation.pm

index 50be185..efb923d 100644 (file)
@@ -2851,7 +2851,7 @@ sub AddRenewal {
     # Charge a new rental fee, if applicable?
     my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber );
     if ( $charge > 0 ) {
-        my $accountno = 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(