]> git.koha-community.org Git - koha.git/commit
Bug 14577 - Allow restriction of checkouts based on fines of guarantor's guarantees
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 11 Feb 2016 01:23:09 +0000 (01:23 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 11:54:23 +0000 (11:54 +0000)
commitcaa753388ade8515a05ea4b70cf9c58dd14a51a7
tree8700ecd7f3ba00307460b9f25bc125344324e3e5
parentb46f4128ea250010b644aa55b544c3c663a7fd17
Bug 14577 - Allow restriction of checkouts based on fines of guarantor's guarantees

This enhancment allows a library to prevent patrons from checking out
items if his or her guarantees own too much.

Test Plan:
1) Apply this patch
2) Find or create a patron with a guarantor
3) Add a fine to the patron's account
4) Set the new system preference NoIssuesChargeGuarantees to be less
   than the amount owed by the patron
4) Attempt to check out an item to the guarantor, you will either
   be warned or prevented from checking out based on your system
   settings.

Signed-off-by: Cathi Wiggin <CWIGGINS@arcadiaca.gov>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Circulation.pm
C4/Members.pm
Koha/Patron.pm
circ/circulation.pl
installer/data/mysql/atomicupdate/bug_14577.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
t/db_dependent/Circulation/NoIssuesChargeGuarantees.t [new file with mode: 0644]
t/db_dependent/Patron.t