X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts.html;h=3d4043aff1d7b37b0e50f25eecd5d86169305a22;hb=8cbe016ac2c28cd209c48f053f361573368e7988;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..3d4043aff 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 #')
% : ' ';
@@ -57,12 +65,21 @@
<% mt('Country') |h %> |
<% code2country( $cust_main->get("${pre}country") ) %> |
+
+% if ( $cust_main->get($pre.'latitude') && $cust_main->get($pre.'longitude') ) {
+ <& /elements/tr-coords.html, $cust_main->get($pre.'latitude'),
+ $cust_main->get($pre.'longitude'),
+ $cust_main->name_short,
+ &>
+% }
+
<% $daytime_label %> |
<& /elements/phonenumber.html,
$cust_main->get("${pre}daytime"),
- 'callable'=>1
+ 'callable'=>1,
+ 'calling_list_exempt'=>$cust_main->calling_list_exempt,
&>
|
@@ -71,7 +88,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 +128,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 +147,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');
%init>