From 73e3de28477eff6b4e2e4ce7f00af2268eb8b04c Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 24 Apr 2007 22:36:24 +0000 Subject: 1528 add driver's license field, mask it and ssn (backport) --- httemplate/view/cust_main/contacts.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index d5788c9a4..0a0ba24ff 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') ) { SS# - <% $cust_main->ss || ' ' %> + <% $cust_main->masked('ss') || ' ' %> % } @@ -75,6 +75,14 @@ <% $cust_main->get("${pre}fax") || ' ' %> +% if ( $which eq '' && $conf->exists('show_stateid') ) { + + <% $stateid_label %> + <% $cust_main->masked('stateid') || ' ' %> + <% $stateid_state_label %><\TD> + <% $cust_main->stateid_state || ' ' %> + +% } % if ( $which ne 'ship_' ) {
@@ -89,6 +97,12 @@ my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/ my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/ ? 'Night Phone' : FS::Msgcat::_gettext('night'); +my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/ + ? 'Driver’s License' + : FS::Msgcat::_gettext('stateid'); +my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_state)?$/ + ? 'Driver’s License State' + : FS::Msgcat::_gettext('stateid_state'); <%init> -- cgit v1.2.1