Bug 28896

Summary: Checkin Slip doesn't work for anonymized checkouts
Product: Koha Reporter: Kyle M Hall <kyle>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: andrewfh, bwsdonna, emmi.takkinen, gmcharlt, kyle.m.hall, rcoert, sbrown
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27772
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34210
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12224, 27851    
Bug Blocks:    

Description Kyle M Hall 2021-08-25 11:00:27 UTC
The new CHECKINSLIP notice does not work on patrons whose checkouts are anonymized upon checkin. Instead it appears that the patron had no checkins at all!

This is due to how the feature gets the old issues. The printslip script takes the borrowernumber and a branchcode and searches the old_issues table which is then filtered by date.

I think for this to function for anonymized checkouts we need to pass the actual issue_id's as a list to the slip so they can be looked up directly and not inferred by borrowernumber, branchcode and date.