From b4bce0bf487b4ee3620e13f1fdf56ecc1d001a42 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 10 Feb 2002 02:28:28 +0000 Subject: [PATCH] hide SS# unless you turn it on via config file --- FS/FS/Conf.pm | 7 +++++++ httemplate/edit/cust_main.cgi | 11 +++++++++-- 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 @@ - + <% #for misplaced logic below @@ -153,10 +153,17 @@ END print < , + END +if ( $conf->exists('show_ss') ) { + print qq!SS#!; +} else { + print qq!!; +} + print <SS# + Company ${r}Address   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 @@ - + <% my $conf = new FS::Conf; @@ -49,8 +49,12 @@ print ''; 'Contact name', '', $cust_main->last, ', ', $cust_main->first, - 'SS#', - $cust_main->ss || ' ', '', + ''; +print 'SS#', + $cust_main->ss || ' ', '' + if $conf->exists('show_ss'); + +print '', 'Company', $cust_main->company, '', -- 2.11.0