[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 930d3879f02dbd72813c58c7ff63769938a8de6b
Ivan
ivan at 420.am
Mon May 14 17:42:33 PDT 2012
The branch, FREESIDE_2_3_BRANCH has been updated
via 930d3879f02dbd72813c58c7ff63769938a8de6b (commit)
from f8daa9dcd20594a097c959136a50211ce26abf51 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 930d3879f02dbd72813c58c7ff63769938a8de6b
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon May 14 17:42:32 2012 -0700
add umask_ss config, RT#17606
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 780edfb..35279d6 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -1903,6 +1903,13 @@ and customer address. Include units.',
},
{
+ 'key' => 'unmask_ss',
+ 'section' => 'UI',
+ 'description' => "Don't mask social security numbers in the web interface.",
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'show_stateid',
'section' => 'UI',
'description' => "Turns on display/collection of driver's license/state issued id numbers in the web interface. Sometimes required by electronic check (ACH) processors.",
@@ -4782,6 +4789,13 @@ and customer address. Include units.',
},
{
+ 'key' => 'cust_main-custom_content',
+ 'section' => 'UI',
+ 'description' => 'As an alternative to cust_main-custom_link (leave it blank), the contant to display on this customer page, one item per line. Available iems are: small_custview, birthdate, spouse_birthdate, svc_acct, svc_phone and svc_external.',
+ 'type' => 'textarea',
+ },
+
+ {
'key' => 'cust_main-custom_title',
'section' => 'UI',
'description' => 'Title for the "Custom" tab in the View Customer page.',
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index da3667e..7b3e181 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -292,7 +292,7 @@ if ( $cgi->param('error') ) {
$cust_main->paycvv($paycvv);
}
@invoicing_list = $cust_main->invoicing_list;
- $ss = $cust_main->masked('ss');
+ $ss = $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss');
$stateid = $cust_main->masked('stateid');
$payinfo = $cust_main->paymask;
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 2b10b9d..a5c0257 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -14,7 +14,7 @@
</TD>
% if ( $which eq '' && $conf->exists('show_ss') ) {
<TD ALIGN="right"><% mt('SS#') |h %></TD>
- <TD BGCOLOR="#ffffff"><% $cust_main->masked('ss') || ' ' %></TD>
+ <TD BGCOLOR="#ffffff"><% $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss') || ' ' %></TD>
% }
</TR>
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Conf.pm | 14 ++++++++++++++
httemplate/edit/cust_main.cgi | 2 +-
httemplate/view/cust_main/contacts.html | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list