Bug 40779 - returned checkout generates refund if fee was cancelled
Summary: returned checkout generates refund if fee was cancelled
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: 25.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-09 20:34 UTC by Benjamin Daeuber
Modified: 2025-09-09 20:34 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Daeuber 2025-09-09 20:34:33 UTC
If you cancel a fee for a lost item, that item will create a credit when it is returned. To recreate:

1. Ensure WhenLostChargeReplacementFee is set to "Charge" and that "Refund lost item replacement fee" in circ rules is set to "refund lost item charge".
2. Check out an item that has a replacement cost.
3. Set the item to lost.
4. Go to the Accounting tab and view Transactions.
5. Cancel the charge.
6. Return the item. Note that the patron now has a credit.

This does not appear to be the case when a fine is written off.

I also question whether canceling a fee should mark and item as Paid as I've always viewed "Cancel charge" as an "oops" button when someone accidentally makes something lost, so it probably shouldn't set the item to paid. But that might be outside of the scope of this ticket.