Applying lost and paid status at the wrong time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Evergreen master / 2.7 series
So, we think we are seeing a situation where the following can occur and have the Lost and Paid status applied to copies prematurely.
An item is checked out, and accrues some overdue fines. The item is renewed, starting a second transaction and the first transaction remains open because the fines have yet to be paid. The second transaction goes to lost, and a lost bill gets applied and the item is marked with a status of Lost. When the library staff go to pay off the first transaction's overdues, and it closed that transaction, it also changes the copy status over to "Lost and Paid."
Looking back at the code, I think that the check for whether to change an item to "lost and paid" occurs every time a transaction closes and it only looks to see if the item is "lost" and the library setting is enabled. So in the situation described above, all those facts are true and the copy is set incorrectly, because actually the 2nd transaction's end by being paid off is what ought to have set the copy status. See changes from: http://
A bit confusing for end users and staff.
tags: | added: pullrequest |
Changed in evergreen: | |
milestone: | none → 2.7.3 |
importance: | Undecided → Medium |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Confirming this bug as I have reproduced it on our training system running 2.7.2.
The attached document shows data for an item that was checked out, reached MAXFINES, then renewed and subsequently marked Lost. The overdue fine on the parent transaction was then paid.
The parent transaction was closed, and the item status flipped to Lost and Paid, even though no portion of the Lost billing was paid.
The item's status should only change to Lost and Paid when the transaction that is being closed has a stop_fines of LOST.