X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=20770e45b8c694406719e12491802f2a37e30d34;hb=f144c3a14169d99fd93f265da690d9ce38dbae68;hp=d5788c9a491c67602c3cf63c2b1277f678940bd5;hpb=17856ff5c299e4db21da28116f2666655c03f2c7;p=freeside.git diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index d5788c9a4..20770e45b 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,12 +25,23 @@ Address <% $cust_main->get("${pre}address1") %> + % if ( $cust_main->get("${pre}address2") ) { +% my $address2_label = +% ( $conf->exists('cust_main-require_address2') +% # && ( ( !$which && !$cust_main->has_ship_address ) +% # || ( $which && $cust_main->has_ship_address ) +% # ) +% && ! ( $which xor $cust_main->has_ship_address ) +% ) +% ? 'Unit #' +% : ' '; + + + <% $address2_label %> + <% $cust_main->get("${pre}address2") %> + - -   - <% $cust_main->get("${pre}address2") %> - % } @@ -75,6 +86,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 +108,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>