From b4bce0bf487b4ee3620e13f1fdf56ecc1d001a42 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 10 Feb 2002 02:28:28 +0000 Subject: hide SS# unless you turn it on via config file --- httemplate/edit/cust_main.cgi | 11 +++++++++-- httemplate/view/cust_main.cgi | 10 +++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) (limited to 'httemplate') 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, '', -- cgit v1.2.1