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)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 19 Aug 2020 15:37:54 +0000 (11:37 -0400)
commit71f54b8d5ae18c17fbc44cd7d5faff9abd1da8b7
treee40a43531669f1a5e9f9e7a361fb816895b80ce1
parent4b9c08f62fdcc048a4523a84e27ed4535099c131
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]