From 4a88b9aa339b1e188166dc838c48f266308521c6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 25 Feb 2019 18:09:33 +0000 Subject: [PATCH] Bug 21798: (RMaint follow-up) Fix for circular dependancy breakage Signed-off-by: Martin Renvoize --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 1198fa2033..a02cde46bf 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -576,7 +576,7 @@ sub ChargeReserveFee { INSERT INTO accountlines ( borrowernumber, accountno, date, amount, description, accounttype, amountoutstanding ) VALUES (?, ?, NOW(), ?, ?, 'Res', ?) }; my $dbh = C4::Context->dbh; - my $nextacctno = &getnextacctno( $borrowernumber ); + my $nextacctno = C4::Accounts::getnextacctno( $borrowernumber ); $dbh->do( $accquery, undef, ( $borrowernumber, $nextacctno, $fee, "Reserve Charge - $title", $fee ) ); } -- 2.39.5