Bug 35839

Summary: Local use is double-counted when using both RecordLocalUseOnCheckin and statistical patrons
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kyle.m.hall, magnus
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16122
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andrew Fuerste-Henry 2024-01-18 22:37:26 UTC
To recreate:
- enable RecordLocalUseOnReturn
- create a statistical patron category and a patron in it
- check an item out to your statistical patron
- count local use entries with a report: SELECT * FROM statistics WHERE type='localuse' AND itemnumber= (your item)
- see that your one checkout has created 2 entries in statistics

It seems plausible that a single library might want to use these two features concurrently to count different things, but doing so creates an inflated count.
Comment 1 Magnus Enger 2024-01-19 06:52:55 UTC
Looks like this was added twice.

*** This bug has been marked as a duplicate of bug 35840 ***