From 43840a37840a9327cf50e26ff52efd74e649865d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 2 Feb 2023 22:47:49 +0000 Subject: [PATCH] Bug 27992: Call AddReturn when checking in localuse item --- C4/Circulation.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 6fcd4918200..c06353943d3 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -827,6 +827,9 @@ sub CanBookBeIssued { } ); ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item + if ( $item_object->onloan ) { + AddReturn( $item_object->barcode, C4::Context->userenv->{'branch'} ); + } return( { STATS => 1 }, {}); } -- 2.30.2