From efc68f41987d007de5e792b88df1c63bf3dedf4c Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 2 Aug 2008 04:20:22 +0000 Subject: bundled package presentation improvements --- httemplate/edit/cust_main.cgi | 6 ++++-- httemplate/edit/cust_main/billing.html | 9 +++++++++ httemplate/view/cust_main/billing.html | 7 +++++++ 3 files changed, 20 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index f0d719c2e..10086a4dd 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -265,7 +265,8 @@ function bottomfixup(what) { 'tax', 'invoicing_list', 'invoicing_list_POST', 'invoicing_list_FAX', 'invoice_terms', - 'spool_cdr' + 'spool_cdr', + 'squelch_cdr' ); for ( f=0; f < topvars.length; f++ ) { @@ -501,7 +502,8 @@ function copyelement(from, to) { % 'tax', % 'invoicing_list', 'invoicing_list_POST', 'invoicing_list_FAX', % 'invoice_terms', -% 'spool_cdr' +% 'spool_cdr', +% 'squelch_cdr' % ) { % diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 6b1c2a86f..d4c503412 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -446,6 +446,15 @@ % } +% if ( $conf->exists('voip-cust_cdr_squelch') ) { + + squelch_cdr eq "Y" ? 'CHECKED' : '' %>> Omit CDRs from invoices + +% } else { + + +% } + diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 2f05c1ae2..aea90e8b3 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -196,6 +196,13 @@ Billing information % } +% if ( $conf->exists('voip-cust_cdr_squelch') ) { + + Print CDRs + <% $cust_main->squelch_cdr ? 'no' : 'yes' %> + +% } + <%once> -- cgit v1.2.1