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>
Fri, 31 Jul 2020 17:43:40 +0000 (13:43 -0400)
commita6a4a27d87c61a6771b55ac5dd391c4658fb8940
treef3b42ef6174f630c4e6c2b70065b89d1b4276c83
parente8afbd4634f2c60acd587781c48a0aaa6ca282d5
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>
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]