From: Ivan Kohler Date: Tue, 15 May 2012 00:42:32 +0000 (-0700) Subject: add umask_ss config, RT#17606 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=930d3879f02dbd72813c58c7ff63769938a8de6b;p=freeside.git add umask_ss config, RT#17606 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 780edfbf4..35279d600 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1902,6 +1902,13 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'unmask_ss', + 'section' => 'UI', + 'description' => "Don't mask social security numbers in the web interface.", + 'type' => 'checkbox', + }, + { 'key' => 'show_stateid', 'section' => 'UI', @@ -4781,6 +4788,13 @@ and customer address. Include units.', 'type' => 'textarea', }, + { + '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', diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index da3667eb8..7b3e181a3 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 2b10b9dfd..a5c02575c 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -14,7 +14,7 @@ % if ( $which eq '' && $conf->exists('show_ss') ) { <% mt('SS#') |h %> - <% $cust_main->masked('ss') || ' ' %> + <% $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss') || ' ' %> % }