Bug 13697: Syspref to not add a fee when a patron changes to a category with enrolmen...
authorChristophe Croullebois <christophe.croullebois@biblibre.com>
Wed, 11 Feb 2015 13:46:47 +0000 (14:46 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 28 Aug 2015 12:51:45 +0000 (09:51 -0300)
commit079de81c104441e1e87799affb7ab8eaef0f91f4
treea82712abda0051cb3a316f3d50f1ffc07afe3349
parent8749411abd8ba46cf7dba31ab9ff847be0b91638
Bug 13697: Syspref to not add a fee when a patron changes to a category with enrolment fee

By default this syspref is "Do" to keep the previous behaviour.

Test plan :

1/ create 2 categories (A & B). B with enrolment fee
2/ create a patron in category A
3/ change the patron category from A to B
4/ check that the patron has an enrolment fee to pay

Apply the patch

1/ create a new patron in category A
2/ change the patron category from A to B.
3/ check that the patron has an enrolment fee to pay
4/ change the system preference 'FeeOnChangePatronCategory' to 'Don't';
5/ create a new patron in category A
6/ change the patron category from A to B
7/ check that the patron has no enrolment fee to pay

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Members.pm
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref