Lp 1843079: Add renewals remaining to AutoRenew reactor's user data
authorJason Stephenson <jason@sigio.com>
Fri, 6 Sep 2019 14:38:25 +0000 (10:38 -0400)
committerJason Boyer <JBoyer@equinoxinitiative.org>
Thu, 13 Aug 2020 00:00:43 +0000 (20:00 -0400)
commit68ed88e897ff22b3afe7796dcbfc119c9b398cc1
tree5edfb3aa00f074995494c3076c6979bf12946d89
parentf1730c77ff92cc62229321690af4328352652cd9
Lp 1843079: Add renewals remaining to AutoRenew reactor's user data

Add auto_renewal_remaining and total_renewal_remaining fields to the
autorenew event's user data so that we can report the number of
renewals remaining to the patron without doing (possibly erroneous)
math in the template.  When the circulation is renewed, we use the
renewal remaining counts from the new circulation.  When the renewal
fails, we use the counts from the original circulation.

The current template is not modified to add these fields.  That is left
as an exercise for sites that want to add this information for the
convenience of their patrons.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jason Boyer <JBoyer@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor/Circ/AutoRenew.pm
docs/RELEASE_NOTES_NEXT/Circulation/autorenewnotify-renewal-field.adoc [new file with mode: 0644]