X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=e88c02ea5d2c85bd6cc26b50fc3c47936a39ebb3;hb=cb0b8c862de7c7ab68b172faa29167f47894627b;hp=3b86533a6f412d52f124276869a6212ee83ae19c;hpb=5dcbdb568e7aadabf49b8821a7d50f508a675a7d;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 3b86533a6..e88c02ea5 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') || ' ' %> |
% }
@@ -25,18 +25,26 @@
Address |
<% $cust_main->get("${pre}address1") %> |
+
% if ( $cust_main->get("${pre}address2") ) {
+% my $address2_label =
+% ( $conf->exists('cust_main-require_address2')
+% && ! ( $pre xor $cust_main->has_ship_address )
+% )
+% ? 'Unit #'
+% : ' ';
+
+
+ <% $address2_label %> |
+ <% $cust_main->get("${pre}address2") %> |
+
-
- |
- <% $cust_main->get("${pre}address2") %> |
-
% }
City |
<% $cust_main->get("${pre}city") %> |
-% if ( $cust_main->get("${pre}county" ) ) {
+% if ( $cust_main->get("${pre}county") ) {
County |
<% $cust_main->get("${pre}county") %> |
% }
@@ -75,6 +83,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 +105,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');
%once>
<%init>