From d34861c4d32675dac5f0405f078adddb35d4c863 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Thu, 15 Nov 2018 11:37:27 -0500 Subject: RT# 80138 - Added config option to display/edit customer option to send or not send payment receipts Conflicts: FS/FS/Schema.pm httemplate/edit/cust_main/billing.html httemplate/view/cust_main/billing.html --- httemplate/edit/cust_main/billing.html | 14 ++++++++++++++ httemplate/view/cust_main/billing.html | 8 ++++++++ 2 files changed, 22 insertions(+) (limited to 'httemplate') diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 135f636cd..858f906dd 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -516,6 +516,20 @@ +% if ( $conf->config_bool('allow_payment_receipt_noemail', $cust_main->agentnum) ) { + + paymentreceipt_noemail eq 'Y' ) + ? 'CHECKED' + : '' + + %>> <% mt('Do not send email payment receipts') |h %> + + + +% } + % unless ( $conf->exists('cust-email-high-visibility')) { diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index aeebc5ab2..ddc971307 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -304,6 +304,14 @@ set_display_recurring(<% encode_json({'display_recurring' => [ $cust_main->displ <% $cust_main->invoice_noemail ? $no : $yes %> +% if ( $conf->config_bool('allow_payment_receipt_noemail', $cust_main->agentnum) ) { + + <% mt('Email payment receipts') |h %> + + <% $cust_main->paymentreceipt_noemail ? $no : $yes %> + + +% } % unless ( $conf->exists('cust-email-high-visibility')) { <% mt('Email address(es)') |h %> -- cgit v1.2.1