diff options
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 11 | ||||
-rwxr-xr-x | httemplate/view/cust_main.cgi | 10 |
3 files changed, 23 insertions, 5 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index da6bf72ce..20ec1380e 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -723,6 +723,13 @@ httemplate/docs/config.html 'type' => 'checkbox', }, + { + 'key' => 'show_ss', + 'section' => 'UI', + 'description' => 'Turns on display/collection of SS# in the web interface.', + 'type' => 'checkbox', + }, + ); 1; diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index fad4d9e6d..5be6a3579 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,4 +1,4 @@ -<!-- $Id: cust_main.cgi,v 1.19 2002-01-30 14:18:08 ivan Exp $ --> +<!-- $Id: cust_main.cgi,v 1.20 2002-02-10 02:28:27 ivan Exp $ --> <% #for misplaced logic below @@ -153,10 +153,17 @@ END print <<END; <INPUT TYPE="text" NAME="last" VALUE="$last"> , <INPUT TYPE="text" NAME="first" VALUE="$first"> +</TD> END +if ( $conf->exists('show_ss') ) { + print qq!<TD ALIGN="right">SS#</TD><TD><INPUT TYPE="text" NAME="ss" VALUE="$ss" SIZE=11></TD>!; +} else { + print qq!<TD><INPUT TYPE="hidden" NAME="ss" VALUE="$ss"></TD>!; +} + print <<END; -</TD><TD ALIGN="right">SS#</TD><TD><INPUT TYPE="text" NAME="ss" VALUE="$ss" SIZE=11></TD></TR> +</TR> <TR><TD ALIGN="right">Company</TD><TD COLSPAN=5><INPUT TYPE="text" NAME="company" VALUE="$company" SIZE=70></TD></TR> <TR><TH ALIGN="right">${r}Address</TH><TD COLSPAN=5><INPUT TYPE="text" NAME="address1" VALUE="$address1" SIZE=70></TD></TR> <TR><TD ALIGN="right"> </TD><TD COLSPAN=5><INPUT TYPE="text" NAME="address2" VALUE="$address2" SIZE=70></TD></TR> diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index dc4760d73..946fc63e4 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -1,4 +1,4 @@ -<!-- $Id: cust_main.cgi,v 1.20 2002-02-07 22:29:35 ivan Exp $ --> +<!-- $Id: cust_main.cgi,v 1.21 2002-02-10 02:28:28 ivan Exp $ --> <% my $conf = new FS::Conf; @@ -49,8 +49,12 @@ print '<TD VALIGN="top">'; '<TR><TD ALIGN="right">Contact name</TD>', '<TD COLSPAN=3 BGCOLOR="#ffffff">', $cust_main->last, ', ', $cust_main->first, - '</TD><TD ALIGN="right">SS#</TD><TD BGCOLOR="#ffffff">', - $cust_main->ss || ' ', '</TD></TR>', + '</TD>'; +print '<TD ALIGN="right">SS#</TD><TD BGCOLOR="#ffffff">', + $cust_main->ss || ' ', '</TD>' + if $conf->exists('show_ss'); + +print '</TR>', '<TR><TD ALIGN="right">Company</TD><TD COLSPAN=5 BGCOLOR="#ffffff">', $cust_main->company, '</TD></TR>', |