]> git.koha-community.org Git - koha.git/commit
Renew membership from expiry date or from current date based on a syspref
authorKoustubha Kale <kmkale@anantcorp.com>
Wed, 14 Dec 2011 10:18:16 +0000 (15:48 +0530)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 1 Feb 2012 21:53:40 +0000 (22:53 +0100)
commitbafc25c9d27ffd90d9bf0c55917ee2fe8c28e8c3
tree48f3fcbe11f9e275082a922e2076d22f0abd0eba
parent563fcd1fd11402d4644b20eef4dbe970ff92f544
Renew membership from expiry date or from current date based on a syspref

This patch adds a system preference under Patron -> BorrowerRenewalPeriodBase
Using this preference the patch allows renewal of Patron account either from todays date or from existing expiry date in the patrons account.

To test : Apply patch; Set System Preference BorrowerRenewalPeriodBase ( under Patron ) to "current membership expiry date";
Renew a patron; You will observe that patrons account expiry date has been calculated from previuos expiry date instead of today's date
( as is the default in Koha prior to this patch ).
C4/Members.pm
installer/data/mysql/atomicupdate/bug_6843_Renew_membership_from_expiry_or_current_date.pl [new file with mode: 0755]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref