diff options
author | ivan <ivan> | 2011-07-14 17:21:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-07-14 17:21:08 +0000 |
commit | f13d4c6396201bdf26a4086c708523a0db313acc (patch) | |
tree | 860d9b5c89627d6f9f4217a51c0b47b88fff1d12 | |
parent | d9818900e0c2ec7da76200d05601cd534977151e (diff) |
fix labels for cdr_squelch depending on conf setting of voip-cdr_email, RT#13561
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 2 | ||||
-rw-r--r-- | httemplate/view/cust_main/billing.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 3ac063509..3266c16af 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -509,7 +509,7 @@ function toggle(obj) { % 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' : '' %>> <% mt('Omit CDRs from printed invoices') |h %></TD> + <TD COLSPAN="2"><INPUT TYPE="checkbox" NAME="squelch_cdr" VALUE="Y" <% $cust_main->squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt($conf->exists('voip-cdr_email') ? 'Omit CDRs from printed invoices' : 'Omit CDRs from invoices') |h %></TD> </TR> % } else { <INPUT TYPE="hidden" NAME="squelch_cdr" VALUE="<% $cust_main->squelch_cdr %>"> diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index 9f1ff8dc9..ba63833f4 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -244,7 +244,7 @@ % if ( $conf->exists('voip-cust_cdr_squelch') ) { <TR> - <TD ALIGN="right"><% mt('Print CDRs') |h %></TD> + <TD ALIGN="right"><% mt($conf->exists('voip-cdr_email') ? 'Print CDRs' : 'Show CDRs') |h %></TD> <TD BGCOLOR="#ffffff"><% $cust_main->squelch_cdr ? $no : $yes %></TD> </TR> % } |