Bug 36106: Adjust DUE and PREDUE notices to use TT

To test:
1. Apply patch
2. reset_all (or start your testing environment in the first place)
3. Enable SMS Notices
    a) Find the system preference SMSSendDriver
    b) Enter "Email" as the value for SMSSendDriver and save
4. Go to a patron account, and set the following messaging preferences:
    Item due:
        - Check SMS
        - Check Email
        - Leave Digests only unchecked
    Advance notice
        - Select 1 day in advance
        - Check SMS
        - Check Email
        - Leave Digests only unchecked
5. Go to the checkout tab for that patron
6. Set a custom due date for today and check out an item
7. Set a custom due date for tomorrow and check out another item
8. Run the cron job to generate notices:
   misc/cronjobs/advance_notices.pl -v -c
9. Open the Notices tab on that patron's account
--> The patron should have four notices:
    Item due reminder (one for SMS and one for email)
    Advance notice of item due (one for SMS and one for email)
10. Open each notice and confirm that all information is correct

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Emily Lamancusa 2024-04-25 16:54:16 -04:00 committed by Katrin Fischer
parent 6af529879c
commit e9540c6a1f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 8 additions and 8 deletions

View File

@ -617,11 +617,11 @@ tables:
message_transport_type: email
lang: default
content:
- "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
- "Dear [% borrower.firstname %] [% borrower.surname %],"
- ""
- "The following item is now due:"
- ""
- "<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)"
- "[% biblio.title %], [% biblio.author %] ([% item.barcode %])"
- module: circulation
code: DUE
@ -632,11 +632,11 @@ tables:
message_transport_type: sms
lang: default
content:
- "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
- "Dear [% borrower.firstname %] [% borrower.surname %],"
- ""
- "The following item is now due:"
- ""
- "<<biblio.title>>"
- "[% biblio.title %]"
- module: circulation
code: DUEDGST
@ -833,11 +833,11 @@ tables:
message_transport_type: email
lang: default
content:
- "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
- "Dear [% borrower.firstname %] [% borrower.surname %],"
- ""
- "The following item will be due soon:"
- ""
- "<<biblio.title>>, <<biblio.author>> (<<items.barcode>>)"
- "[% biblio.title %], [% biblio.author %] ([% item.barcode %])"
- module: circulation
code: PREDUE
@ -848,11 +848,11 @@ tables:
message_transport_type: sms
lang: default
content:
- "Dear <<borrowers.firstname>> <<borrowers.surname>>,"
- "Dear [% borrower.firstname %] [% borrower.surname %],"
- ""
- "The following item will be due soon:"
- ""
- "<<biblio.title>>"
- "[% biblio.title %]"
- module: circulation
code: PREDUEDGST