LP1891369 Renewal due date extensions
authorBill Erickson <berickxx@gmail.com>
Fri, 25 Jun 2021 15:20:15 +0000 (11:20 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 17 Mar 2022 14:33:51 +0000 (10:33 -0400)
commite787ca0a58fe3e018053c848f6f2cf73a6d36b00
treede226fed43e382c8db0bf129842451c1f5e074d8
parent65baa507bb9037a244bf05cf5aabe8c331799ed5
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>
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/950.data.seed-values.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]