projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optional better visibility for invoicing email field, RT12944
[freeside.git]
/
httemplate
/
view
/
cust_main
/
contacts.html
diff --git
a/httemplate/view/cust_main/contacts.html
b/httemplate/view/cust_main/contacts.html
index
a86c35c
..
56fbac8
100644
(file)
--- a/
httemplate/view/cust_main/contacts.html
+++ b/
httemplate/view/cust_main/contacts.html
@@
-1,28
+1,36
@@
% my %which = (
% my %which = (
-% '' =>
'Billing'
,
-% 'ship_' =>
'Service'
,
+% '' =>
emt('Billing')
,
+% 'ship_' =>
emt('Service')
,
% );
% foreach my $which ( '', 'ship_' ) {
% my $pre = $cust_main->get("${which}last") ? $which : '';
% );
% foreach my $which ( '', 'ship_' ) {
% my $pre = $cust_main->get("${which}last") ? $which : '';
-<% $which{$which} %>
address
+<% $which{$which} %>
<% mt('address') |h %>
<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
<TR>
<% ntable("#cccccc") %><TR><TD><% ntable("#cccccc",2) %>
<TR>
- <TD ALIGN="right">
Contact name
</TD>
+ <TD ALIGN="right">
<% mt('Contact name') |h %>
</TD>
<TD COLSPAN=5 BGCOLOR="#ffffff">
<% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %>
</TD>
% if ( $which eq '' && $conf->exists('show_ss') ) {
<TD COLSPAN=5 BGCOLOR="#ffffff">
<% $cust_main->get("${pre}last"). ', '. $cust_main->get("${pre}first") |h %>
</TD>
% if ( $which eq '' && $conf->exists('show_ss') ) {
- <TD ALIGN="right">
SS#
</TD>
+ <TD ALIGN="right">
<% mt('SS#') |h %>
</TD>
<TD BGCOLOR="#ffffff"><% $cust_main->masked('ss') || ' ' %></TD>
% }
</TR>
<TD BGCOLOR="#ffffff"><% $cust_main->masked('ss') || ' ' %></TD>
% }
</TR>
+% if ( $conf->exists('cust-email-high-visibility') && $which eq '') {
<TR>
<TR>
- <TD ALIGN="right">Company</TD>
+ <TD ALIGN="right"><% mt('Email invoices') |h %></TD>
+ <TD BGCOLOR="#ffff00">
+ <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %>
+ </TD>
+</TR>
+% }
+<TR>
+ <TD ALIGN="right"><% mt('Company') |h %></TD>
<TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}company") |h %></TD>
</TR>
<TR>
<TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}company") |h %></TD>
</TR>
<TR>
- <TD ALIGN="right">
Address
</TD>
+ <TD ALIGN="right">
<% mt('Address') |h %>
</TD>
<TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address1") |h %></TD>
</TR>
<TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address1") |h %></TD>
</TR>
@@
-31,8
+39,8
@@
% ( $conf->exists('cust_main-require_address2')
% && ! ( $pre xor $cust_main->has_ship_address )
% )
% ( $conf->exists('cust_main-require_address2')
% && ! ( $pre xor $cust_main->has_ship_address )
% )
-% ?
'Unit #'
-% : '
';
+% ?
emt('Unit #')
+% : '
';
<TR>
<TD ALIGN="right"><% $address2_label %></TD>
<TR>
<TD ALIGN="right"><% $address2_label %></TD>
@@
-42,43
+50,41
@@
% }
<TR>
% }
<TR>
- <TD ALIGN="right">
City
</TD>
+ <TD ALIGN="right">
<% mt('City') |h %>
</TD>
<TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}city") |h %></TD>
% if ( $cust_main->get("${pre}county") ) {
<TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}city") |h %></TD>
% if ( $cust_main->get("${pre}county") ) {
- <TD ALIGN="right">
County
</TD>
+ <TD ALIGN="right">
<% mt('County') |h %>
</TD>
<TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}county") |h %></TD>
% }
<TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}county") |h %></TD>
% }
- <TD ALIGN="right">
State
</TD>
+ <TD ALIGN="right">
<% mt('State') |h %>
</TD>
<TD BGCOLOR="#ffffff"><% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) |h %></TD>
<TD BGCOLOR="#ffffff"><% state_label( $cust_main->get("${pre}state"), $cust_main->get("${pre}country") ) |h %></TD>
- <TD ALIGN="right">
Zip
</TD>
+ <TD ALIGN="right">
<% mt('Zip') |h %>
</TD>
<TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}zip") %></TD>
</TR>
<TR>
<TD BGCOLOR="#ffffff"><% $cust_main->get("${pre}zip") %></TD>
</TR>
<TR>
- <TD ALIGN="right">
Country
</TD>
+ <TD ALIGN="right">
<% mt('Country') |h %>
</TD>
<TD BGCOLOR="#ffffff"><% code2country( $cust_main->get("${pre}country") ) %></TD>
</TR>
<TR>
<TD ALIGN="right"><% $daytime_label %></TD>
<TD COLSPAN=3 BGCOLOR="#ffffff">
<TD BGCOLOR="#ffffff"><% code2country( $cust_main->get("${pre}country") ) %></TD>
</TR>
<TR>
<TD ALIGN="right"><% $daytime_label %></TD>
<TD COLSPAN=3 BGCOLOR="#ffffff">
- <
% include('/elements/phonenumber.html'
,
+ <
& /elements/phonenumber.html
,
$cust_main->get("${pre}daytime"),
'callable'=>1
$cust_main->get("${pre}daytime"),
'callable'=>1
- )
- %>
+ &>
</TD>
</TR>
<TR>
<TD ALIGN="right"><% $night_label %></TD>
<TD COLSPAN=3 BGCOLOR="#ffffff">
</TD>
</TR>
<TR>
<TD ALIGN="right"><% $night_label %></TD>
<TD COLSPAN=3 BGCOLOR="#ffffff">
- <
% include('/elements/phonenumber.html'
,
+ <
& /elements/phonenumber.html
,
$cust_main->get("${pre}night"),
'callable'=>1
$cust_main->get("${pre}night"),
'callable'=>1
- )
- %>
+ &>
</TD>
</TR>
<TR>
</TD>
</TR>
<TR>
- <TD ALIGN="right">
Fax
</TD>
+ <TD ALIGN="right">
<% mt('Fax') |h %>
</TD>
<TD COLSPAN=3 BGCOLOR="#ffffff">
<% $cust_main->get("${pre}fax") || ' ' %>
</TD>
<TD COLSPAN=3 BGCOLOR="#ffffff">
<% $cust_main->get("${pre}fax") || ' ' %>
</TD>
@@
-96,7
+102,7
@@
<BR>
% }
% }
<BR>
% }
% }
-<
% include('contacts_new.html', $cust_main) %
>
+<
& contacts_new.html, $cust_main &
>
<%once>
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
<%once>
my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/
@@
-117,6
+123,8
@@
my $stateid_state_label = FS::Msgcat::_gettext('stateid_state') =~ /^(stateid_st
my( $cust_main ) = @_;
my $conf = new FS::Conf;
my( $cust_main ) = @_;
my $conf = new FS::Conf;
+my @invoicing_list = $cust_main->invoicing_list;
+my $no = emt('no');
</%init>
</%init>