Bug 19191: Add ability to email receipts for account payments and write-offs
authorKyle M Hall <kyle@bywatetsolutions.com>
Fri, 12 Jan 2018 15:46:24 +0000 (10:46 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 23 Jul 2018 15:08:57 +0000 (15:08 +0000)
commit49772c96129cc07b3c38287657448a2619fe2292
tree3cf150305f638ca16a1f5a40590a9df4a4b1e507
parentb5e60f15478a998f945ebc59b2c13ce9d37b8818
Bug 19191: Add ability to email receipts for account payments and write-offs

Some libraries are paperless and require all payment receipts to be emailed. Koha should give libraries the option to send email receipts if a patron has an email address. If a notice for the type of "credit" exists ( payment or writeoff ), then an email receipt will be sent.

These notices only support Template Toolkit syntax.

Test Plan:
1) Apply this patch and dependencies
2) Add the two new notices, you can find them in installer/data/mysql/en/mandatory/sample_notices.sql
3) Note two new notices exist in the notices editor, ACCOUNT_PAYMENT and ACCOUNT_WRITEOFF
4) Find or create a patron with an email address that owes some amount of money
5) Make a payment for one or more fees
6) Note a new email is queued for the patron
7) Make a writeoff for one or more fees
8) Note a new new email is queued for the patron

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm
installer/data/mysql/en/mandatory/sample_notices.sql