X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=fccdf02477f3a918fe37767f1d8efe414fb207c4;hb=81557398ed4af77c420959a84398f123133cdd67;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..fccdf0247 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 #') % : ' '; @@ -62,7 +70,8 @@ <& /elements/phonenumber.html, $cust_main->get("${pre}daytime"), - 'callable'=>1 + 'callable'=>1, + 'calling_list_exempt'=>$cust_main->calling_list_exempt, &> @@ -71,7 +80,18 @@ <& /elements/phonenumber.html, $cust_main->get("${pre}night"), - 'callable'=>1 + 'callable'=>1, + 'calling_list_exempt'=>$cust_main->calling_list_exempt, + &> + + + + <% $mobile_label %> + + <& /elements/phonenumber.html, + $cust_main->get("${pre}mobile"), + 'callable'=>1, + 'calling_list_exempt'=>$cust_main->calling_list_exempt, &> @@ -100,9 +120,13 @@ my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/ ? 'Day Phone' : FS::Msgcat::_gettext('daytime'); -my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/ +my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/ ? 'Night Phone' : FS::Msgcat::_gettext('night'); +my $mobile_label = FS::Msgcat::_gettext('mobile') =~ /^(mobile)?$/ + ? 'Mobile Phone' + : FS::Msgcat::_gettext('Mobile'); + my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/ ? 'Driver’s License' : FS::Msgcat::_gettext('stateid'); @@ -115,6 +139,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');