RT#7266: aging reports as of a past date
[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 BGCOLOR="#e8e8e8" 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       <INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.days.disabled=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">All customers (even those without an outstanding balance)<BR>
24       <INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="if ( ! this.checked ) { document.OneTrueForm.days.disabled=true; document.OneTrueForm.days.style.backgroundColor = '#dddddd'; } else { document.OneTrueForm.days.disabled=false; document.OneTrueForm.days.style.backgroundColor = '#ffffff'; }">Customers with a balance over <INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0"> days old
25     </TD>
26   </TR>
27   <% include( '/elements/tr-input-date-field.html', {
28                 'name'      => 'as_of',
29                 'value'     => time,
30                 'label'     => 'As of date ',
31                 'format'    => FS::Conf->new->config('date_format') || '%m/%d/%Y',
32   } ) %>
33
34 </TABLE>
35
36 <BR><INPUT TYPE="submit" VALUE="Get Report">
37 </FORM>
38
39 <% include('/elements/footer.html') %>
40
41 <%init>
42
43 die "access denied"
44   unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
45       or $FS::CurrentUser::CurrentUser->access_right('Financial reports');
46
47 </%init>