diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-05-14 17:42:31 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-14 17:42:31 -0700 |
commit | 1ae273f69e5bf2b46c9c5fcd990ad923770ace56 (patch) | |
tree | 47b5cabd5084f986d46ad0ce3e14cba252b843e5 | |
parent | 5214a5560240667a3a914c45df046b420926a5ec (diff) |
add umask_ss config, RT#17606
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 2 | ||||
-rw-r--r-- | httemplate/view/cust_main/contacts.html | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index da8717e25..2acbf0a89 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1925,6 +1925,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.", diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index b97fb16bf..028924669 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -299,7 +299,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 12b9391a0..fe7cc5c0a 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> |