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)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 31 Oct 2013 18:05:25 +0000 (18:05 +0000)
commit070e52f401155e00f075bc45287c98ba94f4cf79
tree67281f5ffbf149a5930c328b4da29bcf3b159b02
parentf57a057ef4420bf5e30ed36a054d99058cdfa4f3
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>
C4/SIP/ILS.pm
C4/SIP/ILS/Patron.pm