From 5ea15e274fe4be96f256cf30bd2d1db0ef21e879 Mon Sep 17 00:00:00 2001 From: Isobel Graham Date: Thu, 30 Jun 2022 16:32:26 +0100 Subject: [PATCH] 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 --- .../intranet-tmpl/prog/en/modules/pos/pay.tt | 41 +++++++++++-- pos/pay.pl | 58 ++++++++++++++++--- 2 files changed, 88 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 905ed4c0f0..8ea2cd7801 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -51,7 +51,7 @@ [% IF payment_id && !Koha.Preference('FinePaymentAutoPopup') %]
- Payment received: Print receipt + Payment received: Print receipt Email receipt
[% END %] @@ -168,7 +168,40 @@ - + +