Bug 29080

Summary: Missing data trail for reduced fine
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
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:
Circulation function:
Bug Depends on: 23091    
Bug Blocks:    

Description Andrew Fuerste-Henry 2021-09-22 16:40:23 UTC
To recreate:
- Set MarkLostItemsAsReturned to ON for all cases, WhenLostChargeReplacementFee ON, WhenLostForgiveFine ON
- Set you refund lost item value to refund lost fee and charge a new overdue fine
- set a circ rule to charge $1 per day overdues
- check out an item, setting its due date to 7 days ago
- run the fines cron, see your $7 accruing fine
- mark the item lost, confirm the $7 fine is forgiven
- check the item in, backdating the checkin to 5 days ago
- confirm your new fine is $2, but old_issues.returndate still shows the time at which this item was marked lost

In this situation, I can't find anything in the data to explain why the fine is $2. That's the correct amount, given the actions, but if one stumbled on this patron after the fact one would have a hard time figuring out what happened.