link new tax report to cust_credit_bill_pkg for credits, RT#12332
[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
15   <% include( '/elements/tr-input-beginning_ending.html' ) %>
16
17   <% include( '/elements/tr-input-lessthan_greaterthan.html',
18                 label   => 'Charged',
19                 field   => 'charged',
20             )
21   %>
22
23   <% include( '/elements/tr-input-lessthan_greaterthan.html',
24                 label   => 'Owed',
25                 field   => 'owed',
26             )
27   %>
28   <% include( '/elements/tr-select-payby.html',
29                 label   => 'Payment method:',
30                 payby_type   => 'cust',
31                 multiple     => 1,
32                 all_selected => 1,
33             )
34   %>
35
36   <TR>
37     <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="open" VALUE="1" CHECKED></TD>
38     <TD>Show only open invoices</TD>
39   </TR>
40   <TR>
41     <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="newest_percust" VALUE="1"></TD>
42     <TD>Show only the single most recent invoice per-customer</TD>
43   </TR>
44
45 </TABLE>
46
47 <BR>
48 <INPUT TYPE="submit" VALUE="Get Report">
49
50 </FORM>
51
52 <% include('/elements/footer.html') %>
53 <%init>
54
55 die "access denied"
56   unless $FS::CurrentUser::CurrentUser->access_right('List invoices');
57
58 </%init>