Bug 10445: make SIP Server respect maxoutstanding system preference
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 11 Jun 2013 14:00:58 +0000 (10:00 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Dec 2013 18:21:36 +0000 (15:21 -0300)
commitd6d43c0349f4a71754c0c9b2cedb6069414f3408
treeee30ef539489c14d787ac8752d3e253673c192d2
parent455af3dc19ff2e60b8bd866825e00c90754945df
Bug 10445: make SIP Server respect maxoutstanding system preference

The system preference 'maxoutstanding' is defined as the maximum amount
of fees owed by the patron before Koha should block placing holds (
terrible naming on this one ).

However, although the Koha OPAC respects this preference, placing holds
via a SIP2 device will not.

Test Plan:
1) Set maxoutstanding to $10
2) Pick a patron owning more than $10 in fees
3) Attempt to place a hold for this patron from a SIP2 device
   This attempt should succeed
4) Apply this patch
5) Restart your SIP2 server
6) Attempt to place a hold for this patron from a SIP2 device again
   This attempt should now fail

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 070e52f401155e00f075bc45287c98ba94f4cf79)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/SIP/ILS.pm
C4/SIP/ILS/Patron.pm