LP1891369 Renewal due date extensions
authorBill Erickson <berickxx@gmail.com>
Fri, 25 Jun 2021 15:20:15 +0000 (11:20 -0400)
committerMichele Morgan <mmorgan@noblenet.org>
Wed, 27 Jul 2022 18:24:33 +0000 (14:24 -0400)
commite9cbaf38ddfa4c0e0f73054795ca78a5db14ef1b
treeb141b83d93b1ed78a88e589e7f1b19bc87b4ab21
parent76e8cc7170c45504252529069612f63ae4ca9a14
LP1891369 Renewal due date extensions

When an item is renewed before it's due date, libraries now have the option
to extend the renewal's due date to include any time lost from the early
renewal.

For example, a 14 day checkout renewed after 12 days will result in a due date
on the renewal of 14 days plus 2 days to cover the lost time.

Two new fields are available under Admin => Local Administration =>
Circulation Policies.

*Early Renewal Extends Due Date*

Enables this new feature for a circulation policy.

*Early Renewal Minimum Duration Percent*

Specifies how early in a checkout a renewal will result in an extended
due date.  E.g. A value of 50 (percent) means no due date extension
would occur if an attempt to renew occurred after 5 days of a 14 day
circulation duration.  In this case, the renewal would still be allowed,
it just wouldn't get the extended due date.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/sql/Pg/100.circ_matrix.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.renewals-use-full-time.sql [new file with mode: 0644]
docs/RELEASE_NOTES_NEXT/Circulation/renewals-extend-due-date.adoc [new file with mode: 0644]