Koha-clms/reserve
Nick Clemens a044f6365b Bug 24485: Allow hold when some can be overridden
The check to see if we can place a hold counts the number that we can override vs the number of items on the record.

We cannot override if we already have a hold on an item, however, we don't count these to see if they plus
the number of overrides equal the items on the record.

To test:
1 - Set max reserves to 2, allow 2 holds per recrod
2 - Place 2 holds for a patron on some records
3 - Find another record with 2 items
4 - Place a hold on the first item, you will be notified about the limit but you can override
5 - Attempt to place hold on second item, cannot be done, button disabled
6 - Apply patch
7 - Repeat
8 - You can place the second hold

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit d52983cf3d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-02-07 20:29:12 +00:00
..
modrequest.pl Bug 21036: Fix uninitialized value within @itemnumber in string ne 2019-05-07 11:39:24 +00:00
modrequest_suspendall.pl Bug 20013: use Modern::Perl in Reserve perl script 2018-02-05 09:46:44 -03:00
placerequest.pl Bug 23116: AllowHoldPolicyOverride allows a librarian to almost place a hold on an item already on hold 2019-07-23 14:46:50 +02:00
request.pl Bug 24485: Allow hold when some can be overridden 2020-02-07 20:29:12 +00:00