Bug 28849

Summary: Claim Returned should alert at checkout
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: emily.lamancusa, gmcharlt, kyle.m.hall
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:
Bug Depends on: 14697    
Bug Blocks:    

Description Andrew Fuerste-Henry 2021-08-12 14:11:32 UTC
When checking out an item connected to an unresolved claim, we should alert the user just as we do at checkin.

To recreate:
- Set ClaimReturnedLostValue
- set MarkLostItemAsReturned so that claimed items are marked as returned
- check an item out to Patron A
- mark that item claimed
- check the item out to Patron B
- Koha alerts you that it's removed the lost status, but not that there is an unresolved claim
- set MarkLostItemAsReturned so that claimed items are NOT marked as returned
- mark item as claimed on Patron B's account
- check the item out to Patron C
- Koha alerts you that the it's removed the item's lost status and asks if you want to end Patron B's checkout, but does not mention the 2 unresolved claims
- check the item in
- Koha gives a return-claim dialog alert with links to Patron A and Patron B

We should give the same alert at checkout, since that's the moment at which Koha first knows this item has been found.