Bug 28953

Summary: Incorrect behavior when voiding a payment on an fine that was paid while accruing and later backdated at return such that it should not have been fined
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 CC: kyle, martin.renvoize, nick, tomascohen
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:

Description Andrew Fuerste-Henry 2021-09-03 19:09:33 UTC
Apologies, I can't figure out how to say any of this concisely.

To recreate:
- Have an overdue item with an accruing fine
- pay the fine
- check in the item, backdated to before its due date
- confirm that your patron shows a credit for overpayment of a fine
- void your payment
- confirm patron's account is not right

The fine shows amount=0 and amountoutstanding = [whatever the original fine was]. The patron shouldn't owe us anything here.

Further complicating things, the fine doesn't show on the Make a Payment tab at all -- seems like the logic here must be to only show fines where the amountoutstanding > amount?