-<% 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: ',
)
%>
</FORM>
<% include('/elements/footer.html') %>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
+
+</%init>