Bug 12717: Library no longer receiving Overdue email for patrons without email address
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 20 Aug 2014 11:26:49 +0000 (13:26 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 26 Aug 2014 18:08:33 +0000 (15:08 -0300)
commit2031c3e5ca9ede22c0f70082c2b90a2416b2b5c3
tree1101f91e956e880919e793305c7c9a681bcb2474
parent794fa6e80558fc4fd5a3d4fd1fdb41983d316346
Bug 12717: Library no longer receiving Overdue email for patrons without email address

Bug 10832 changes the fallback behavior if a patron does not have email
address: a print notice is generated into the message_queue table.
But this can cause issue for some libraries. The script should sent an
email and (generated csv, html, text file) with the list of all unsent
notices.

Test plan:
1/ Add overdue to a patron without email address (or smsalertnumber)
2/ Check email in the overdue rules configuration (or sms)
3/ Launch the overdue_notices.pl cronjob
4/ Verify the message_queue contain a print notice AND an email notice
for the library

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This works as described and restores the old behaviour for now, with
the difference that you have a print notice generated and visible
in the patron account notices tab that will say 'pending'.

We will have to figure out how we can change the workflows nicely
to have only one script deal with print notice in the future.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
misc/cronjobs/overdue_notices.pl