X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=a86c35cdd76834fa143ecefcb3350d43cec7ac41;hb=073169e80bea0560b64e468a76121bf837de34f3;hp=51b72da9a838fadfd354263cf403bd3a786b4de7;hpb=14ee9d25605ce139bad4655987575508c06f7f7e;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html
index 51b72da9a..a86c35cdd 100644
--- a/httemplate/view/cust_main/contacts.html
+++ b/httemplate/view/cust_main/contacts.html
@@ -10,38 +10,46 @@
Contact name |
- <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") %>
+ <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %>
|
% if ( $which eq '' && $conf->exists('show_ss') ) {
SS# |
- <% $cust_main->ss || ' ' %> |
+ <% $cust_main->masked('ss') || ' ' %> |
% }
Company |
- <% $cust_main->get("${pre}company") %> |
+ <% $cust_main->get("${pre}company") |h %> |
Address |
- <% $cust_main->get("${pre}address1") %> |
+ <% $cust_main->get("${pre}address1") |h %> |
+
% 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") |h %> |
+
-
- |
- <% $cust_main->get("${pre}address2") %> |
-
% }
City |
- <% $cust_main->get("${pre}city") %> |
-% if ( $cust_main->county ) {
+ <% $cust_main->get("${pre}city") |h %> |
+% if ( $cust_main->get("${pre}county") ) {
County |
- <% $cust_main->county %> |
+ <% $cust_main->get("${pre}county") |h %> |
% }
State |
- <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) %> |
+ <% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) |h %> |
Zip |
<% $cust_main->get("${pre}zip") %> |
@@ -75,12 +83,20 @@
<% $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_' ) {
% }
% }
-
+<% include('contacts_new.html', $cust_main) %>
<%once>
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
@@ -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>