Bug 29974 - Changing status of held item to Damaged can result in inaccurate hold status
Summary: Changing status of held item to Damaged can result in inaccurate hold status
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low trivial
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-28 21:31 UTC by Sara Brown
Modified: 2024-07-29 18:36 UTC (History)
5 users (show)

See Also:
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 Sara Brown 2022-01-28 21:31:17 UTC
With AllowHoldsOnDamagedItems set to "don't allow", if an undamaged item is waiting on hold for a patron, has its Damaged status set while waiting, and then is checked out to the patron, Koha thinks the item is simultaneously still held and checked out.

To recreate:
-Place a hold on an undamaged item
-Trigger the hold
-Once the item is waiting for the patron, change its status to Damaged
-Check the item out to that patron

In the bib, the item now shows as both waiting and checked out in the holdings table and in the Holds tab as waiting. In the patron's record, it shows as checked out and waiting. It also still shows in 'Holds awaiting pickup'.
Comment 1 Christopher Brannon 2022-01-28 22:40:58 UTC
I can confirm.  We've run into this issue on more than one occasion.  Would like to see this fixed ASAP.
Comment 2 Katrin Fischer 2022-06-25 21:04:45 UTC
I guess this is the case because a 'damaged' item can no longer 'fill' the hold... but it's already waiting, so already triggered the hold. Maybe it could be changed for this case.

I just wonder if there could be other use cases where this behaviour could be wanted?
Comment 3 Andrew Fuerste-Henry 2024-07-19 17:14:23 UTC
This bug is still valid.

I have a really hard time imaging a case in which a library would want an item that's understood to be Waiting for the patron to be checked out to that patron without filling the hold. It seems a safe assumption that when an item is checked out from Waiting the hold should be completed.
Comment 4 Christopher Brannon 2024-07-19 17:37:53 UTC
It seems strange that any status should be allowed to be changed while an item is waiting.  It seems that the hold status should block status editing until the item is either checked out or the triggered hold status is reverted back to the queue.

I could see how maybe something that was sitting on the hold shelf waiting to be picked up could be grabbed and damaged or found damaged before checking out, but it seems that logically, the item needs to be reverted to put the patron back in the queue anyway.  So, either the staff member needs to revert the hold then change the status, or applying a status should automatically revert the hold.
Comment 5 Andrew Fuerste-Henry 2024-07-19 18:43:58 UTC
(In reply to Christopher Brannon from comment #4)
> It seems strange that any status should be allowed to be changed while an
> item is waiting.  It seems that the hold status should block status editing
> until the item is either checked out or the triggered hold status is
> reverted back to the queue.

I don't see the need for that level of restriction to be placed on the user. In the instance that brought this to my attention, staff did not note the damage to the item until after it had been captured for the hold. They wanted to allow the patron to have it but note the damage for later. Your suggestion would complicate that.
Comment 6 Katrin Fischer 2024-07-29 09:23:15 UTC
I agree with Andrew - I don't see a need to block the damage status change in that way as it doesn't affect circulation.

In our libraries the status seems to be most often used for documentation of damages, so for example the user is not blamed for them on return.
Comment 7 Christopher Brannon 2024-07-29 18:36:17 UTC
(In reply to Katrin Fischer from comment #6)
> I agree with Andrew - I don't see a need to block the damage status change
> in that way as it doesn't affect circulation.
> 
> In our libraries the status seems to be most often used for documentation of
> damages, so for example the user is not blamed for them on return.

Then perhaps if a damage status is being applied to a waiting hold, it should ask staff if the item is to continue to be on hold, or reverted back to the queue?