Bug 30619 - Add the option to email receipts as an alternative to printing
Summary: Add the option to email receipts as an alternative to printing
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Isobel Graham
QA Contact: Testopia
URL:
Keywords:
Depends on: 13985
Blocks:
  Show dependency treegraph
 
Reported: 2022-04-26 11:02 UTC by Martin Renvoize
Modified: 2022-07-04 16:56 UTC (History)
2 users (show)

See Also:
Change sponsored?: Sponsored
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 30619: Add email receipt to POS (7.40 KB, patch)
2022-07-01 07:24 UTC, Isobel Graham
Details | Diff | Splinter Review
Bug 30619: Add sample email notice (5.94 KB, patch)
2022-07-01 09:04 UTC, Martin Renvoize
Details | Diff | Splinter Review
Bug 30619: Add email receipt to POS (7.45 KB, patch)
2022-07-01 09:11 UTC, Martin Renvoize
Details | Diff | Splinter Review
Bug 30619: Add sample email notice (5.94 KB, patch)
2022-07-01 09:11 UTC, Martin Renvoize
Details | Diff | Splinter Review
Bug 30619: Add email receipt to POS (7.50 KB, patch)
2022-07-04 16:55 UTC, ByWater Sandboxes
Details | Diff | Splinter Review
Bug 30619: Add sample email notice (5.98 KB, patch)
2022-07-04 16:55 UTC, ByWater Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Renvoize 2022-04-26 11:02:38 UTC
We have the 'UseEmailReceipts' preference, but we don't have any way for patrons to opt in/out of an email receipt at payment time or for anonymous payments in the point of sale system.

It would be great to have a 'Email receipt' option wherever we display the option to 'Print receipt' with the ability to either use the borrowers primary notices address or, for the anonymous case, define an email address there and then for the receipt to be sent to.
Comment 1 Isobel Graham 2022-07-01 07:24:36 UTC
Created attachment 136798 [details] [review]
Bug 30619: Add email receipt to POS

This patch adds the ability to use email receipts with the point of sale
module.

To test:
1) Configure your Koha to enable the point of sale system.
2) Add an email template to the 'Point of sale > RECEIPT' notice.
3) Add some charges on point of sale and pay for them.
3a) You should now see a new 'Email receipt' button next to the 'Print
receipt' option.
3b) Clicking the button will display a modal to enter the anonymous
users email address
3c) Enter an email address and confirm to send the email
Comment 2 Martin Renvoize 2022-07-01 09:04:55 UTC
Created attachment 136800 [details] [review]
Bug 30619: Add sample email notice

This patch adds a default same email type notice for the point of sale
receipt.
Comment 3 Martin Renvoize 2022-07-01 09:06:48 UTC
Thanks Isobel, great work.

I've added a follow-up patch to set the default email notice template for you.

Test plan wise, this can be easily tested using the sandboxes.

Follow the plan and then you can spot that the email has been sent using the Koha Mail Log available from the sandbox management UI.
Comment 4 Martin Renvoize 2022-07-01 09:11:18 UTC
Created attachment 136801 [details] [review]
Bug 30619: Add email receipt to POS

This patch adds the ability to use email receipts with the point of sale
module.

To test:
1) Configure your Koha to enable the point of sale system.
2) Add an email template to the 'Point of sale > RECEIPT' notice.
3) Add some charges on point of sale and pay for them.
3a) You should now see a new 'Email receipt' button next to the 'Print
receipt' option.
3b) Clicking the button will display a modal to enter the anonymous
users email address
3c) Enter an email address and confirm to send the email

Sponsored-by: Martin Renvoize <martin.renvoize@gmail.com>
Comment 5 Martin Renvoize 2022-07-01 09:11:21 UTC
Created attachment 136802 [details] [review]
Bug 30619: Add sample email notice

This patch adds a default same email type notice for the point of sale
receipt.
Comment 6 ByWater Sandboxes 2022-07-04 16:55:21 UTC
Created attachment 137131 [details] [review]
Bug 30619: Add email receipt to POS

This patch adds the ability to use email receipts with the point of sale
module.

To test:
1) Configure your Koha to enable the point of sale system.
2) Add an email template to the 'Point of sale > RECEIPT' notice.
3) Add some charges on point of sale and pay for them.
3a) You should now see a new 'Email receipt' button next to the 'Print
receipt' option.
3b) Clicking the button will display a modal to enter the anonymous
users email address
3c) Enter an email address and confirm to send the email

Sponsored-by: Martin Renvoize <martin.renvoize@gmail.com>

Signed-off-by: David Nind <david@davidnind.com>
Comment 7 ByWater Sandboxes 2022-07-04 16:55:24 UTC
Created attachment 137132 [details] [review]
Bug 30619: Add sample email notice

This patch adds a default same email type notice for the point of sale
receipt.

Signed-off-by: David Nind <david@davidnind.com>