fix net sales amount (credits were being applied in wrong month), RT#7502
[freeside.git] / httemplate / search / report_cust_bill.html
index ec57d20..e551c8e 100644 (file)
@@ -1,11 +1,12 @@
-<% include('/elements/header.html', 'Invoice report criteria' ) %>
+<% include('/elements/header.html', 'Invoice Report' ) %>
 
 <FORM ACTION="cust_bill.html" METHOD="GET">
 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
 
-<TABLE>
+<TABLE BGCOLOR="#cccccc" CELLSPACING=0
+
   <% include( '/elements/tr-select-agent.html',
-                 $cgi->param('agentnum'),
+                 ($cgi->param('agentnum') || ''),
                  'label' => 'Invoices for agent: ',
              )
   %>
@@ -26,3 +27,9 @@
 </FORM>
 
 <% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
+
+</%init>