Bug 27887

Summary: Patrons should not receive overdue notices for claimed returns
Product: Koha Reporter: Esther Melander <esther.melander>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: andrewfh, george, lisettepalouse+koha, mathsabypro, rcoert
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Esther Melander 2021-03-05 20:08:59 UTC
Patrons who have claimed returns items continue to receive overdue notices. This is problematic especially if the claim is they really did return the item or never had it. These patrons should not continue to receive overdue notices. There is currently not a way to exclude claimed returns from overdue notices. It would be nice to have a system setting or some other way to prevent overdue notices from going out on those items.
Comment 1 Rebecca Coert 2021-09-13 20:13:34 UTC
We would absolutely, 100% like to see this function.  Staff have told us that they spend a lot of time discussing this with patrons, who are sometimes irate for having us contact them regarding an item that they've already told us they've RETURNED.  We search our locations several times for these items, and receiving these notices creates extra work for everyone.
Comment 2 George Williams (NEKLS) 2021-11-24 14:41:10 UTC
I'd rather see the ability to decide on a claims-returned-by-claims-returned basis whether or not an overdue notice is sent regarding claims returned items.  I'd like to see a checkbox in the claims returned table that staff can check on or off to determine whether or not a notice is sent.  That would be far more flexible than an all-on or all-off feature.
Comment 3 Lisette Scheer 2022-03-09 17:15:39 UTC
I agree with George that some flexibility (similar to ClaimReturnedChargeFee) where we could set it to 
"Ask if OD notices should trigger" 
"Always trigger OD notices"
"Never trigger OD notices"

Lisette
Comment 4 Andrew Fuerste-Henry 2022-03-17 13:04:26 UTC
Testing this on master, overdue notices are not generated for items marked Claimed. I followed this test plan:
1 - create a LOST value for claims, put it in the ClaimReturnedLostValue
2 - make sure MarkLostItemsAsReturned is set to not mark claimed items as returned
3 - set your overdue notice triggers to send the first overdue notice at 1 day overdue
4 - check out 1 item to Patron A, manually setting the due date to 1 day ago
5 - mark Patron A's item claimed returned
6 - check out 1 item to Patron B, manually setting the due date to 1 day ago
7 - DO NOT mark Patron B's item claimed returned
8 - run the overdue cron (perl misc/cronjobs/overdue_notices.pl -v -t)
9 - Patron A did not get an overdue, but Patron B did

Please comment and reopen if this is not the case in older versions. If so, I'd call that a bug rather than an enhancement.