Bug 29096

Summary: Removing a lost status via item edit refunds lost fee without reinstating overdue fine
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: Fines and feesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
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: 23091    
Bug Blocks:    

Description Andrew Fuerste-Henry 2021-09-23 13:41:30 UTC
To recreate:
- Set WhenLostChargeReplacementFee ON, WhenLostForgiveFine ON
- Set you refund lost item value to EITHER refund lost fee and charge a new overdue fine OR refund lost fee and restore overdue fine
- check an item out with a due date in the past, run the fines cron
- mark the item lost, confirm the overdue fine is forgiven and a lost fee is applied
- edit the item to remove the lost status
- confirm the lost status is refunded but the overdue fine hasn't returned

We're removing the lost fee on the assumption that we've found the item and therefore the patron doesn't owe us the replacement anymore. That assumption should also result in restoring/re-charging the overdue fine.