From f2a9c4f0c8fc221cc964c8f5e63a7528378ea702 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 19 Dec 2023 14:15:03 -0500 Subject: [PATCH] Bug 28530: (QA follow-up) Require the item checkin to exceed the limit, rather than meet the limit Signed-off-by: Andrew Fuerste-Henry --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 80e041752b8..c9fb9972614 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2206,7 +2206,7 @@ sub AddReturn { my $limit = Koha::Library::FloatLimits->find( { itemtype => $effective_itemtype, branchcode => $branch } ); if ($limit) { my $count = Koha::Items->count( { itype => $limit->itemtype } ); - if ( $count >= $limit->float_limit ) { + if ( $count > $limit->float_limit ) { my $transfer_branchcode = Koha::Library::FloatLimits->lowest_ratio_library( $item, $branch ); if ( $transfer_branchcode ne $branch ) { $returnbranch = $transfer_branchcode; -- 2.30.2