X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=a86c35cdd76834fa143ecefcb3350d43cec7ac41;hb=8e5fab2148c7dc492b9fffe271c3dcf8df55b01f;hp=22594c5e271ba217f2d86181eb12faf179ceba22;hpb=51bf0e9b404cd6e4ae84435230447619269f77c0;p=freeside.git diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 22594c5e2..a86c35cdd 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -10,7 +10,7 @@ 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# @@ -19,29 +19,37 @@ 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") %> + <% $cust_main->get("${pre}city") |h %> % if ( $cust_main->get("${pre}county") ) { County - <% $cust_main->get("${pre}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") %> @@ -88,7 +96,7 @@
% } % } - +<% include('contacts_new.html', $cust_main) %> <%once> my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/