[freeside-commits] freeside/httemplate/view/cust_main contacts.html, 1.14, 1.14.2.1

Erik Levinson levinse at wavetail.420.am
Mon May 30 16:24:53 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail.420.am:/tmp/cvs-serv19008/httemplate/view/cust_main

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	contacts.html 
Log Message:
optional better visibility for invoicing email field, RT12944

Index: contacts.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/contacts.html,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -w -d -r1.14 -r1.14.2.1
--- contacts.html	2 Nov 2010 00:28:13 -0000	1.14
+++ contacts.html	30 May 2011 23:24:51 -0000	1.14.2.1
@@ -17,6 +17,14 @@
     <TD BGCOLOR="#ffffff"><% $cust_main->masked('ss') || '&nbsp' %></TD>
 % } 
 </TR>
+% if ( $conf->exists('cust-email-high-visibility') && $which eq '') {
+<TR>
+  <TD ALIGN="right"><% mt('Email invoices') |h %></TD>
+  <TD BGCOLOR="#ffff00">
+    <% join(', ', grep { $_ !~ /^(POST|FAX)$/ } @invoicing_list ) || $no %>
+  </TD>
+</TR>
+% }
 <TR>
   <TD ALIGN="right">Company</TD>
   <TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}company") |h %></TD>
@@ -117,6 +125,8 @@
 
 my( $cust_main ) = @_;
 my $conf = new FS::Conf;
+my @invoicing_list = $cust_main->invoicing_list;
+my $no = emt('no');
 
 </%init>
 



More information about the freeside-commits mailing list