From 51bf0e9b404cd6e4ae84435230447619269f77c0 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 2 Apr 2007 15:49:37 +0000 Subject: ticket 1528 add driver's license field, mask it and ssn --- 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..22594c5e2 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 %> + <% $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