]> git.koha-community.org Git - koha.git/commit
Bug 14723: Additional delivery notes to messages
authorLari Taskula <lari.taskula@hypernova.fi>
Wed, 12 Apr 2017 11:14:44 +0000 (11:14 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 May 2021 11:48:55 +0000 (13:48 +0200)
commitaa450994422fb62742e3b20931c6f2f07c638602
tree9f19bd44732a10c3efffbd2c50ac4bb0b7283d75
parent1a41fb3e4b81b156b7debd7de48a7c9212e52e49
Bug 14723: Additional delivery notes to messages

This patch adds additional delivery notes to messages in message queue as there
can be multiple reasons for a delivery to fail.

Currently in message_queue we are given only two delivery statuses for messages,
"sent" and "failed". When the status becomes failed, we have no idea why it fails.

This feature can be useful with SMS gateway providers. Many SMS gateways inform
the application the reason of SMS delivery failure. With this feature, this
information can now be stored. As well as for emails, instead of simply logging
failures, we can now store the reason of failure directly into the message row
of message_queue.

Test plan:

1. Enable EnhancedMessagingPreferences syspref
2. Find a borrower with notices at members/notices.pl
3. Observe that there is no column for Delivery notes
4. Apply patch and run the given database update
5. Repeat step 1.
6. Observe that there is now a column for Delivery notes

Sponsored-by: Hypernova Oy
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Letters.pm
installer/data/mysql/atomicupdate/Bug-14723_-_Additional_delivery_notes_to_messages.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt
t/db_dependent/Letters.t