From 82167509844f9713bce7e8f7914b45caf2e4a7c4 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 25 Apr 2023 22:30:20 +0000 Subject: [PATCH] Bug 16122: Increment localuse when checking out to stats patron --- C4/Circulation.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b8d9901d37..15c308519b 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -827,6 +827,12 @@ sub CanBookBeIssued { location => $item_object->location, } ); + + #increment items.localuse + my $localuse_count = $item_object->localuse; + $localuse_count++; + $item_object->localuse( $localuse_count )->store; + ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item return( { STATS => 1 }, {}); } -- 2.30.2