LP1891369 Renewal due date extensions user/berick/lp1891369-renewal-extend-due-date
authorBill Erickson <berickxx@gmail.com>
Fri, 25 Jun 2021 15:20:15 +0000 (11:20 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 25 Jun 2021 15:22:01 +0000 (11:22 -0400)
commitebb053b3b50f67be1cb3c269b4ba74d2e633f07d
treed9682988358882ecc90f6f4e899af8a55f0e2c48
parent8b6765e3c0df78e46db0a4bdf72efbb7158e4fcc
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.

New Org Unit Settings

* circ.renew.extend_due_date

Enables this new feature

* circ.renew.extend_due_date.min_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/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
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]