From: ivan Date: Thu, 14 Jul 2011 17:21:08 +0000 (+0000) Subject: fix labels for cdr_squelch depending on conf setting of voip-cdr_email, RT#13561 X-Git-Tag: freeside_2_3_0~23 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f13d4c6396201bdf26a4086c708523a0db313acc fix labels for cdr_squelch depending on conf setting of voip-cdr_email, RT#13561 --- 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') ) { - squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt('Omit CDRs from printed invoices') |h %> + squelch_cdr eq "Y" ? 'CHECKED' : '' %>> <% mt($conf->exists('voip-cdr_email') ? 'Omit CDRs from printed invoices' : 'Omit CDRs from invoices') |h %> % } else { 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') ) { - <% mt('Print CDRs') |h %> + <% mt($conf->exists('voip-cdr_email') ? 'Print CDRs' : 'Show CDRs') |h %> <% $cust_main->squelch_cdr ? $no : $yes %> % }