Bug 24431

Summary: Convert overpayment on accruing fines into credits
Product: Koha Reporter: Andrew Fuerste-Henry <andrewfh>
Component: Fines and feesAssignee: Kyle M Hall <kyle>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: martin.renvoize
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 Andrew Fuerste-Henry 2020-01-15 19:54:58 UTC
See Kyle's proposal on Bug 13044.

To recreate issue:
- find/create a checkout with an accruing fine
- pay off accruing fine in full
- check item in backdated so the final fine is less than the amount paid
- fine is retained on patron account with a negative amount due
- because this is a negative fine rather than a true credit, it cannot be reconciled


To fix this, we should set the amountoutstanding of the fine to 0 and generate a credit for the overpaid amount.
Comment 1 Kyle M Hall 2020-01-30 12:32:51 UTC
As far as I can tell, this was implemented in bug 21727.

*** This bug has been marked as a duplicate of bug 21727 ***
Comment 2 Martin Renvoize 2020-01-30 13:09:13 UTC

*** This bug has been marked as a duplicate of bug 21747 ***
Comment 3 Martin Renvoize 2020-01-30 13:09:54 UTC
I think it's actually 21747 which switches UpdateFine to using the adjust method added in bug 21727 and as such is the duplicate here :)
Comment 4 Andrew Fuerste-Henry 2020-01-30 13:58:28 UTC
Thanks, Martin! This resolves a huge pain point for several of our libraries.