diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-11-15 11:37:27 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-11-15 11:37:27 -0500 |
commit | 0e115ecd7e70269ac58ce705adec4b1c801d14de (patch) | |
tree | 06d206e740d7062bb1e1d659eaa5967807d68ce2 /httemplate | |
parent | 96077ef6ef66cf65bb47eb78158fb89b65a3af0c (diff) |
RT# 80138 - Added config option to display/edit customer option to send or not send payment receipts
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 10 | ||||
-rw-r--r-- | httemplate/view/cust_main/billing.html | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index fa7abd2..618e191 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -105,6 +105,16 @@ box_first => 1, &> +% if ( $conf->config_bool('allow_payment_receipt_noemail', $cust_main->agentnum) ) { + <& /elements/tr-checkbox.html, + field => 'paymentreceipt_noemail', + label => emt('Do not send email payment receipts'), + value => 'Y', + curr_value => $cust_main->paymentreceipt_noemail, + box_first => 1, + &> +% } + <& /elements/tr-checkbox.html, field => 'message_noemail', label => emt('Do not send other email notices'), diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 5935da9..29ed2c7 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -167,6 +167,12 @@ set_display_recurring(<% encode_json({'display_recurring' => [ $cust_main->displ <TD><% $cust_main->invoice_noemail ? $refused : $allowed %></TD> % } </TR> +% if ( $conf->config_bool('allow_payment_receipt_noemail', $cust_main->agentnum) ) { +<TR> + <TH ALIGN="right"><% mt('Email payment receipts') |h %></TH> + <TD><% $cust_main->paymentreceipt_noemail ? $refused : $allowed %></TD> +</TR> +% } <TR> <TH ALIGN="right"><% mt('Other email notices') |h %></TH> <TD> |