Bug 21373

Summary: Checkout not possible when biblio level hold but other items could satisfy it
Product: Koha Reporter: Joonas Kylmälä <joonas.kylmala>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 21373: refactor code in C4/Circulation.pm
Bug 21373: allow checkout if other availabe items can satisfy hold

Description Joonas Kylmälä 2018-09-18 09:44:03 UTC
Assume following

1. There is bib record with 5 items available
2. Patron A makes a bib level hold for the record

Now we try to checkout one item from the bib record for patron B

Result: I get a warning menu saying that this item is on hold

Expected result: I can proceed with the checkout and no warnings come unless there are no available items, i.e., biblio level hold number <= items available.

I refactored the C4/Circulation.pm a bit so that we can use the code from CanBookBeRenewd function to make the checkout work the same way as it is possible with renewals, i.e. renewals are possible even if there is a biblio level hold and some other available item that can satisfy the loan. I will send this patch ASAP.
Comment 1 Joonas Kylmälä 2018-09-25 14:10:34 UTC
Created attachment 79377 [details] [review]
Bug 21373: refactor code in C4/Circulation.pm
Comment 2 Joonas Kylmälä 2018-09-25 14:11:39 UTC
Created attachment 79378 [details] [review]
Bug 21373: allow checkout if other availabe items can satisfy hold