[freeside-commits] freeside/httemplate/view/cust_main contacts.html, 1.11, 1.12
Ivan,,,
ivan at wavetail.420.am
Sun Dec 16 16:59:04 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main
In directory wavetail:/tmp/cvs-serv16653/httemplate/view/cust_main
Modified Files:
contacts.html
Log Message:
add cust_main-require_address2 config, reimplement address2-search config ("Unit #" search in searchbar), visual indication of require_invoicing_list_email, closes: RT#2926
Index: contacts.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/contacts.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- contacts.html 2 Apr 2007 15:49:37 -0000 1.11
+++ contacts.html 17 Dec 2007 00:59:01 -0000 1.12
@@ -25,12 +25,23 @@
<TD ALIGN="right">Address</TD>
<TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address1") %></TD>
</TR>
+
% if ( $cust_main->get("${pre}address2") ) {
+% my $address2_label =
+% ( $conf->exists('cust_main-require_address2')
+% # && ( ( !$which && !$cust_main->has_ship_address )
+% # || ( $which && $cust_main->has_ship_address )
+% # )
+% && ! ( $which xor $cust_main->has_ship_address )
+% )
+% ? 'Unit #'
+% : ' ';
+
+ <TR>
+ <TD ALIGN="right"><% $address2_label %></TD>
+ <TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address2") %></TD>
+ </TR>
-<TR>
- <TD ALIGN="right"> </TD>
- <TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address2") %></TD>
-</TR>
% }
<TR>
More information about the freeside-commits
mailing list