Bug 21373 - Checkout not possible when biblio level hold but other items could satisfy it
Summary: Checkout not possible when biblio level hold but other items could satisfy it
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-18 09:44 UTC by Joonas Kylmälä
Modified: 2020-07-09 14:52 UTC (History)
2 users (show)

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
Bug 21373: refactor code in C4/Circulation.pm (7.06 KB, patch)
2018-09-25 14:10 UTC, Joonas Kylmälä
Details | Diff | Splinter Review
Bug 21373: allow checkout if other availabe items can satisfy hold (1.02 KB, patch)
2018-09-25 14:11 UTC, Joonas Kylmälä
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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