tax names on payment search report #9760
[freeside.git] / httemplate / search / report_receivables.html
index 4f29b06..912ef26 100755 (executable)
@@ -5,7 +5,7 @@
 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
 
   <TR>
-    <TH BGCOLOR="#e8e8e8" COLSPAN=2 ALIGN="left">
+    <TH CLASS="background" COLSPAN=2 ALIGN="left">
       <FONT SIZE="+1">Search options</FONT>
     </TH>
   </TR>
       <INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="if ( ! this.checked ) { document.OneTrueForm.days.disabled=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old
     </TD>
   </TR>
+  <% include( '/elements/tr-input-date-field.html', {
+                'name'      => 'as_of',
+                'value'     => time,
+                'label'     => 'As of date ',
+                'format'    => FS::Conf->new->config('date_format') || '%m/%d/%Y',
+  } ) %>
 
 </TABLE>
 
@@ -35,6 +41,7 @@
 <%init>
 
 die "access denied"
-  unless $FS::CurrentUser::CurrentUser->access_right('Receivables report');
+  unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
+      or $FS::CurrentUser::CurrentUser->access_right('Financial reports');
 
 </%init>