Bug 34924: Adjust auto renewal email to reflect success for final renewals

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-10-23 17:52:11 +00:00 committed by Tomas Cohen Arazi
parent cc0a8bf423
commit 5fea2e431a
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -2145,7 +2145,13 @@ tables:
lang: default
content:
- "Dear [% borrower.firstname %] [% borrower.surname %],"
- "[% IF checkout.auto_renew_error %]"
- "[% IF checkout.auto_renew_error == 'auto_renew_final' %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"
- "This item has reached the maximum number of automatic renewals and will no longer be renewed."
- "[% ELSIF checkout.auto_renew_error == 'auto_unseen_final' %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"
- "This item has reached the maximum number of unseen renewals and will need to be renewed at the library."
- "[% ELSIF checkout.auto_renew_error %]"
- "The following item, [% biblio.title %], has not been renewed because:"
- "[% IF checkout.auto_renew_error == 'too_many' %]"
- "You have reached the maximum number of renewals possible."
@ -2163,12 +2169,6 @@ tables:
- "This item must be renewed at the library."
- "[% ELSIF checkout.auto_renew_error == 'auto_account_expired' %]"
- "Your account has expired."
- "[% ELSIF checkout.auto_renew_error == 'auto_renew_final' %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"
- "This item has reached the maximum number of automatic renewals and will no longer be renewed."
- "[% ELSIF checkout.auto_renew_error == 'auto_unseen_final' %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"
- "This item has reached the maximum number of unseen renewals and will need to be renewed at the library."
- "[% END %]"
- "[% ELSE %]"
- "The following item, [% biblio.title %], has correctly been renewed and is now due on [% checkout.date_due | $KohaDates as_due_date => 1 %]"