https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44193
Bug ID: 44193
Summary: Paying (or writing off) a lost item charge marks the
copy lost again after it has been returned
Initiative type: ---
Sponsorship ---
status:
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Fines and fees
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
When a LOST charge is fully paid, Koha::Account::Line::apply sets the item's
itemlost to UpdateItemLostStatusWhenPaid (or UpdateItemLostStatusWhenWriteOff
for a write-off). It never checks that the copy is still lost.
A copy can be found while its charge stays on the patron's account: the "Lost
item fee refund on return" policy set to "Leave lost item charge" for the
replacement fee, or a return after NoRefundOnLostReturnedItemsAge days.
Checking it in clears itemlost and the book goes back on the shelf. When the
patron later pays the charge, the copy is set to lost again (e.g. "Lost and
paid for"): it shows as lost in the staff interface and the OPAC (hidden there
with hidelostitems) and cannot fill holds, while it is sitting on the shelf,
and nothing on the screen says why.
To reproduce:
1. Set UpdateItemLostStatusWhenPaid to a lost value, e.g. "Lost and paid for".
2. Circulation and fines rules, "Lost item fee refund on return policy": Refund
lost item replacement fee = "Leave lost item charge".
3. Check an item out to a patron and mark it lost: a LOST charge is added.
4. Check the item in: it is no longer lost; the LOST charge is still
outstanding.
5. Pay the LOST charge in full.
6. The item is lost again (itemlost = the value from step 1).
Expected: a copy that is no longer lost keeps its status when the charge is
paid or written off.
Reproduced on main (6ff8078) with a db_dependent test (pay of a LOST debit
whose item has itemlost = 0 sets it to 3).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/