Bug 19382: Add ability to block guarantees based on fees owed by guarantor and other...
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 10 Jan 2020 16:59:56 +0000 (11:59 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 14 Oct 2020 12:50:07 +0000 (14:50 +0200)
commit7a7a0a2474c958e85b96db55bba04e8d90fbed31
tree8d65c89e8bc3686a0eaa26b1703446dbb2154d75
parenta15a7f5d81bde1a728b77f9ce69d3ff6382782e0
Bug 19382: Add ability to block guarantees based on fees owed by guarantor and other guarantees

Some libraries would like to not only block the circulation of a guarantor based on fines owed by guarantees, but would also like to block circulation for all guarantees as well. Basically, if a family as a whole reaches a certain threshold of fines, the entire family will be blocked from checking out items.

Test Plan:
1) Apply this patch
2) Set NoIssuesChargeGuarantorsWithGuarantees to $14
3) Create a family of four ( 2 guarantors, 2 guarantees ) where the parents guarantee both children
4) Give 3 of the 4 a $5 fine
5) None of them should be able to check out items

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm
C4/SIP/ILS/Patron.pm
Koha/Patron.pm
circ/circulation.pl
installer/data/mysql/atomicupdate/bug_19283.perl [new file with mode: 0644]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
opac/sco/sco-main.pl
t/db_dependent/Koha/Patron.t