From b97ff5d7461e529b7a4e980ce0f2fe41cf6b0288 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 Signed-off-by: David Nind Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../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 @@ - + +