allow all-agent reporting again
[freeside.git] / httemplate / search / report_cust_bill.html
1 <% include('/elements/header.html', 'Invoice Report' ) %>
2
3 <FORM ACTION="cust_bill.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
5
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0
7
8   <% include( '/elements/tr-select-agent.html',
9                  'curr_value'    => scalar( $cgi->param('agentnum') ),
10                  'label'         => 'Invoices for agent: ',
11                  'disable_empty' => 0,
12              )
13   %>
14   <% include( '/elements/tr-input-beginning_ending.html' ) %>
15   <TR>
16     <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="open" VALUE="1" CHECKED></TD>
17     <TD>Show only open invoices</TD>
18   </TR>
19   <TR>
20     <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="newest_percust" VALUE="1"></TD>
21     <TD>Show only the single most recent invoice per-customer</TD>
22   </TR>
23 </TABLE>
24
25 <BR>
26 <INPUT TYPE="submit" VALUE="Get Report">
27
28 </FORM>
29
30 <% include('/elements/footer.html') %>
31 <%init>
32
33 die "access denied"
34   unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
35
36 </%init>