X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=56fbac8c6213c96e40e71347e08f9f9f8ae091a7;hb=6e0ae9815a528a46b6f0c98fc5cdff67a95ed278;hp=0b754d097070746d436c5217ee5dfb01f98d1e6b;hpb=2238711675eefa60cd2feb47c8d3e43d3e6f1860;p=freeside.git diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 0b754d097..56fbac8c6 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -1,6 +1,6 @@ % my %which = ( -% '' => mt('Billing'), -% 'ship_' => mt('Service'), +% '' => emt('Billing'), +% 'ship_' => emt('Service'), % ); % foreach my $which ( '', 'ship_' ) { % my $pre = $cust_main->get("${which}last") ? $which : ''; @@ -13,10 +13,18 @@ <% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %> % if ( $which eq '' && $conf->exists('show_ss') ) { - SS# + <% mt('SS#') |h %> <% $cust_main->masked('ss') || ' ' %> % } +% if ( $conf->exists('cust-email-high-visibility') && $which eq '') { + + <% mt('Email invoices') |h %> + + <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %> + + +% } <% mt('Company') |h %> <% $cust_main->get("${pre}company") |h %> @@ -31,7 +39,7 @@ % ( $conf->exists('cust_main-require_address2') % && ! ( $pre xor $cust_main->has_ship_address ) % ) -% ? mt('Unit #') +% ? emt('Unit #') % : ' '; @@ -115,6 +123,8 @@ my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_st my( $cust_main ) = @_; my $conf = new FS::Conf; +my @invoicing_list = $cust_main->invoicing_list; +my $no = emt('no');