option to keep an email address but not email it invoices, RT#17676
[freeside.git] / httemplate / view / cust_main / misc.html
index 9346aba..12faa57 100644 (file)
@@ -1,4 +1,4 @@
-<% ntable("#cccccc") %><TR><TD><% &ntable("#cccccc",2) %>
+<TABLE CLASS="fsinnerbox">
 
 <TR>
   <TD ALIGN="right"><% mt('Customer number') |h %></TD>
@@ -77,7 +77,7 @@
 %
 
 
-<A HREF="<% popurl(1) %>cust_main.cgi?<% $cust_main->referral_custnum %>"><%$cust_main->referral_custnum %>: 
+<A HREF="<% popurl(1) %>cust_main.cgi?<% $cust_main->referral_custnum %>"><%$referring_cust_main->display_custnum %>: 
 <%
   ( $referring_cust_main->company
       ? $referring_cust_main->company. ' ('.
 
 % }
 
+% if ( $conf->exists('cust_main-enable_spouse_birthdate') ) {
+%   my $dt = $cust_main->spouse_birthdate ne ''
+%              ? DateTime->from_epoch( 'epoch'  => $cust_main->spouse_birthdate,
+%                                      'time_zone' =>'floating',
+%                                    )
+%              : '';
+
+  <TR>
+    <TD ALIGN="right"><% mt('Spouse Date of Birth') |h %></TD>
+    <TD BGCOLOR="#ffffff"><% $dt ? $dt->strftime($date_format) : '' %></TD>
+  </TR>
+
+% }
+
 % if ( $conf->exists('cust_main-require_censustract') ) {
 
   <TR>
-    <TD ALIGN="right"><% mt('Census tract') |h %></TD>
+    <TD ALIGN="right">
+      <% mt('Census tract ([_1])', $cust_main->censusyear) |h %>
+    </TD>
     <TD BGCOLOR="#ffffff"><% $cust_main->censustract  %></TD>
   </TR>
 
 % }
 
-% foreach (sort { $a cmp $b } $cust_main->virtual_fields) {
-    <% $cust_main->pvf($_)->widget('HTML', 'view', $cust_main->getfield($_)) %>
+% if ( $cust_main->district ) {
+
+  <TR>
+    <TD ALIGN="right"><% mt('Tax district') |h %></TD>
+    <TD BGCOLOR="#ffffff"><% $cust_main->district %></TD>
+  </TR>
+
 % }
 
+
 % if ( $conf->exists('ticket_system-selfservice_edit_subject') ) {
 
   <TR>
 
 % }
 
-</TABLE></TD></TR></TABLE>
+% foreach (sort { $a cmp $b } $cust_main->virtual_fields) {
+    <% $cust_main->pvf($_)->widget('HTML', 'view', $cust_main->getfield($_)) %>
+% }
+
+</TABLE>
 <%init>
 
 my( $cust_main ) = @_;