Lp 1843079: Add renewals remaining to AutoRenew reactor's user data user/dyrcona/lp1843079-autorenew-renewal_remaining
authorJason Stephenson <jason@sigio.com>
Fri, 6 Sep 2019 14:38:25 +0000 (10:38 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 31 Jul 2020 16:22:02 +0000 (12:22 -0400)
commit9bbbacfcb6a0e82f97cc07c3e218054fb86f36b0
treecdf11a2edf0d753f417242f51ea6e765e1abfd90
parent13c3771e3ce7fb23ce93a6943553d13519a2303d
Lp 1843079: Add renewals remaining to AutoRenew reactor's user data

Add a renewal_remaining field 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 count from the
new circulation.  When the renewal fails, we use the number from the
original circulation.

The current template is not modified to add this field.  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>
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]