diff options
author | jeff <jeff> | 2008-08-02 04:20:22 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-08-02 04:20:22 +0000 |
commit | efc68f41987d007de5e792b88df1c63bf3dedf4c (patch) | |
tree | c1097a43fa4b2430d938eb8e7cc0e82611fe37e6 /httemplate | |
parent | 6038f6fe5fe3590bcc8063f15ba8ce4cb6a985dc (diff) |
bundled package presentation improvements
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 6 | ||||
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 9 | ||||
-rw-r--r-- | httemplate/view/cust_main/billing.html | 7 |
3 files changed, 20 insertions, 2 deletions
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 @@ <INPUT TYPE="hidden" NAME="spool_cdr" VALUE="<% $cust_main->spool_cdr %>"> % } +% if ( $conf->exists('voip-cust_cdr_squelch') ) { + <TR> + <TD COLSPAN="2"><INPUT TYPE="checkbox" NAME="squelch_cdr" VALUE="Y" <% $cust_main->squelch_cdr eq "Y" ? 'CHECKED' : '' %>> Omit CDRs from invoices</TD> + </TR> +% } else { + + <INPUT TYPE="hidden" NAME="squelch_cdr" VALUE="<% $cust_main->squelch_cdr %>"> +% } + </TABLE> </FORM> 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 </TR> % } +% if ( $conf->exists('voip-cust_cdr_squelch') ) { + <TR> + <TD ALIGN="right">Print CDRs</TD> + <TD BGCOLOR="#ffffff"><% $cust_main->squelch_cdr ? 'no' : 'yes' %></TD> + </TR> +% } + </TABLE></TD></TR></TABLE> <%once> |