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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 31 Jan 2019 16:31:04 +0000 (16:31 +0000)
commitf02dbfe16552b534f8239579c016cc78f1aeb943
tree741fed31125b03cb624291359b05c228078fee7c
parent71495e2f6f633fe2c7bd3a74a70cfd13b0ec67c9
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>
(cherry picked from commit b028a2d1a53a7106a00a7ec6a860e813c0781342)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Reserves.pm
t/db_dependent/Holds.t