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