This commit was generated by cvs2svn to compensate for changes in r11022,
[freeside.git] / httemplate / search / report_receivables.html
1 <% include('/elements/header.html', 'Accounts Receivable Aging Summary' ) %>
2
3 <FORM NAME="OneTrueForm" ACTION="report_receivables.cgi" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7   <TR>
8     <TH CLASS="background" COLSPAN=2 ALIGN="left">
9       <FONT SIZE="+1">Search options</FONT>
10     </TH>
11   </TR>
12
13   <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
14
15   <% include( '/elements/tr-select-cust_main-status.html',
16                 'label' => 'Customer Status'
17             )
18   %>
19   
20   <TR>
21     <TD ALIGN="right">Customers</TD>
22     <TD>
23       <SCRIPT TYPE="text/javascript">
24 function toggle(obj) {
25   var f = document.OneTrueForm;
26   var val = (obj.value == obj.checked);
27   f.days.disabled = val;
28   f.negative.disabled = val;
29   f.days.style.backgroundColor = val ? '#dddddd' : '#ffffff';
30 }
31       </SCRIPT>
32       <TABLE STYLE="padding: 0px">
33         <TR><TD><INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="toggle(this)"></TD>
34         <TD>All customers (even those without an outstanding balance)</TD></TR>
35         <TR><TD><INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="toggle(this)"></TD>
36         <TD>Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old</TD></TR>
37         <TR><TD></TD>
38         <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1">&nbsp;Including customers with credit balances</TD></TR>
39       </TABLE>
40     </TD>
41   </TR>
42   <% include( '/elements/tr-input-date-field.html', {
43                 'name'      => 'as_of',
44                 'value'     => time,
45                 'label'     => 'As of date ',
46                 'format'    => FS::Conf->new->config('date_format') || '%m/%d/%Y',
47   } ) %>
48
49 </TABLE>
50
51 <BR><INPUT TYPE="submit" VALUE="Get Report">
52 </FORM>
53
54 <% include('/elements/footer.html') %>
55
56 <%init>
57
58 die "access denied"
59   unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
60       or $FS::CurrentUser::CurrentUser->access_right('Financial reports');
61
62 </%init>