summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorjeff <jeff>2007-04-24 22:36:24 +0000
committerjeff <jeff>2007-04-24 22:36:24 +0000
commit73e3de28477eff6b4e2e4ce7f00af2268eb8b04c (patch)
tree3070b5ffcee07b1115c203103f71c6d4b21fc5c3 /httemplate/view
parent7fec96d70fd819fb8cd19cbd350a1b80719461b9 (diff)
1528 add driver's license field, mask it and ssn (backport)
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/cust_main/contacts.html16
1 files changed, 15 insertions, 1 deletions
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 @@
</TD>
% if ( $which eq '' && $conf->exists('show_ss') ) {
<TD ALIGN="right">SS#</TD>
- <TD BGCOLOR="#ffffff"><% $cust_main->ss || '&nbsp' %></TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->masked('ss') || '&nbsp' %></TD>
% }
</TR>
<TR>
@@ -75,6 +75,14 @@
<% $cust_main->get("${pre}fax") || '&nbsp' %>
</TD>
</TR>
+% if ( $which eq '' && $conf->exists('show_stateid') ) {
+<TR>
+ <TD ALIGN="right"><% $stateid_label %></TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->masked('stateid') || '&nbsp;' %></TD>
+ <TD ALIGN="right"><% $stateid_state_label %><\TD>
+ <TD BGCOLOR="#ffffff"><% $cust_main->stateid_state || '&nbsp' %></TD>
+</TR>
+% }
</TABLE></TD></TR></TABLE>
% if ( $which ne 'ship_' ) {
<BR>
@@ -89,6 +97,12 @@ my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/
? 'Night&nbsp;Phone'
: FS::Msgcat::_gettext('night');
+my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/
+ ? 'Driver&rsquo;s&nbsp;License'
+ : FS::Msgcat::_gettext('stateid');
+my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_state)?$/
+ ? 'Driver&rsquo;s&nbsp;License State'
+ : FS::Msgcat::_gettext('stateid_state');
</%once>
<%init>