Bug 7614: Check transfer limit in CanBookBeReserved and CanItemBeReserved
authorLari Taskula <lari.taskula@jns.fi>
Tue, 7 Feb 2017 15:51:18 +0000 (17:51 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 25 Jan 2019 14:46:58 +0000 (14:46 +0000)
commitb028a2d1a53a7106a00a7ec6a860e813c0781342
tree5f9babfed00da13439e7054313a79849b0e19c2e
parent2101d0af0034bf8278893b4d4ca7d80c29b3bc75
Bug 7614: Check transfer limit in CanBookBeReserved and CanItemBeReserved

This patch adds $branchcode_to parameter to CanBookBeReserved and
CanItemBeReserved. It represents the pickup location for the hold. This patch
checks if the library is configured to be a pickup location (see Bug 7534), and
also if the item can be transferred into the given library (see Bug 18072).

To test:
1. prove t/db_dependent/Holds.t

Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Reserves.pm
t/db_dependent/Holds.t