Bug 33222

Summary: Checkin message does not display when book is overdue and borrower has manual restriction
Product: Koha Reporter: Janet McGowan <janet.mcgowan>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall, martin.renvoize
Version: 21.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 33322: Refine click handler for suggestion batch operations

Description Janet McGowan 2023-03-14 10:52:14 UTC
Overview:  When a borrower with a manual restriction returns an overdue item the returns.pl page displays the checked in items table showing the summary of returned items but there is no Check in message displayed indicating that the borrower has a restriction.
If the same restricted patron returns an item that is not overdue you see the Check in message indicating "Reminder: Patron has an indefinite restriction." (or Reminder: Patron was earlier restricted until 31/03/2023. - if the patron is restricted to a specific date).

Steps to Reproduce: 
User has 1 overdue item (I used special due date to set to date in the past) and 1 item that is not overdue.
Create a restriction on the patron record - e.g. indefinite restriction.
Return the item that is not overdue - Checkin message shows "Reminder: Patron has an indefinite restriction."
Return the item that is overdue - no Checkin message displays.

Expected results: the Checkin message showing that a patron is restricted should display when returning an overdue book.
Comment 1 Owen Leonard 2023-03-23 17:22:06 UTC Comment hidden (obsolete)