start adding package locations, RT#4499
[freeside.git] / httemplate / view / cust_main / notes.html
index 4c97c9f..833c92e 100755 (executable)
@@ -6,7 +6,9 @@
 
   <TR>
     <TH CLASS="grid" BGCOLOR="#cccccc">Date</TH>
-    <TH CLASS="grid" BGCOLOR="#cccccc">Time</TH>
+%   if ( $conf->exists('cust_main_note-display_times') ) {
+      <TH CLASS="grid" BGCOLOR="#cccccc">Time</TH>
+%   }
     <TH CLASS="grid" BGCOLOR="#cccccc">Person</TH>
     <TH CLASS="grid" BGCOLOR="#cccccc">Note</TH>
   </TR>
@@ -75,7 +77,7 @@ my (@notes) = $cust_main->notes();
 
 sub note_datestr {
   my($note, $conf, $bgcolor) = @_ or return '';
-  my $td = '<TD CLASS="grid" BGCOLOR="$bgcolor" ALIGN="right">';
+  my $td = qq{<TD CLASS="grid" BGCOLOR="$bgcolor" ALIGN="right">};
   my $format = "$td%b&nbsp;%o,&nbsp;%Y</TD>";
   $format .= "$td%l:%M%P</TD>"
     if $conf->exists('cust_main_note-display_times');