]> git.koha-community.org Git - koha.git/commit
Bug 16149: Generate and send custom notices based on report output
authorNick Clemens <nick@bywatersolutions.com>
Mon, 17 Apr 2017 15:20:25 +0000 (11:20 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 19 Apr 2019 14:37:32 +0000 (14:37 +0000)
commit0bbebced9dd463444cb1d91a60bcf4323e5a721e
tree4e4d02db5b5c417a9b67027245bb76bb36d7c04d
parentf751423d155d25b1ba80b4c429191389b46b6bcb
Bug 16149: Generate and send custom notices based on report output

Ths patch add an EmailReport function to C4::Reports::Guided

It accepts a notice (module, code, branch) and a report and attempts to
email notices to patron, generating content using report content.

Notice must be in template toolkit syntax, only columns in report are
available for notice.

To test:
1 - Specify various options
2 - Ensure errors are returned if options are incomplete or incorrect
3 - Pass a report containing 'from' and 'email' and 'borrowernumber'
columns and ensure message queue populated as expected

Signed-off-by: Jessica Ofsa <jofsa@vt.edu>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Reports/Guided.pm
misc/cronjobs/patron_emailer.pl [new file with mode: 0755]