bug 2770: add RenewalPeriodBase syspref for 3.2 (DB rev 032)
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 11 May 2009 20:25:14 +0000 (15:25 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 11 May 2009 20:36:37 +0000 (15:36 -0500)
commit741af686cedd7aef67998752227a2ce483d49b1f
tree6cdf26f724d85708df3167dab95bc10452406281
parent314e818294787fec631cdcb36831d11c0de9227f
bug 2770: add RenewalPeriodBase syspref for 3.2 (DB rev 032)

Reconciliation patch to add the RenewalPeriodBase system
preference, which per code by Nahuel Angelinetti changes
the process of calculating the due date after a renewal:

If RenewalPeriodBase is set to 'now', the due date is
set to the current date + the loan period.  This is the
current behavior.

If RenewalPeriodBase is set to 'date_due', the due date
is set to the due date before the renewal + the loan period.

Unless like the corresonding database update in the 3.0.x branch
(3.00.01.007), the default value of RenewalPeriodBase is set to
'now' so as not to unexpectedly change the calculation.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
admin/systempreferences.pl
installer/data/mysql/updatedatabase.pl