Bug 13014: Notify budget owner on new suggestion - cronjob
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 30 Sep 2014 14:59:50 +0000 (16:59 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 24 Jun 2015 14:41:43 +0000 (11:41 -0300)
commit7ae328cb6fb7b70a04d90eca1c9d0a40df4f726f
treee2ccce6d3859575f0bfa2a16d5139a7a1bbf2a7d
parentcff47199c4f21b6c4747ed225aa738eefbfc3024
Bug 13014: Notify budget owner on new suggestion - cronjob

Test plan:
0/ Create a new notice suggestions > TO_PROCESS
You can use the one defined in the other patch.
1/ Create a suggestion and link it to a fund
2/ Add a owner to this fund and make sure this patron has an email
address (the email address used should be the one defined in the
AutoEmailPrimaryAddress syspref).
3/ Execute the cronjob script with the -v and without the -c argument
4/ The output should tell you that an email will be sent
5/ Execute the cronjob script with the -v and with the -c argument
6/ Verify the notice is generated in the message_queue table and it is
correctly formatted.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
misc/cronjobs/notice_unprocessed_suggestions.pl [new file with mode: 0755]