1 <% include('/elements/header.html', 'Accounts Receivable Aging Summary' ) %>
3 <FORM NAME="OneTrueForm" ACTION="report_receivables.cgi" METHOD="GET">
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
8 <TH CLASS="background" COLSPAN=2 ALIGN="left">
9 <FONT SIZE="+1">Search options</FONT>
13 <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
15 <% include( '/elements/tr-select-cust_main-status.html',
16 'label' => 'Customer Status'
21 <TD ALIGN="right">Customers</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';
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>
38 <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1"> Including customers with credit balances</TD></TR>
42 <% include( '/elements/tr-input-date-field.html', {
45 'label' => 'As of date ',
46 'format' => FS::Conf->new->config('date_format') || '%m/%d/%Y',
51 <BR><INPUT TYPE="submit" VALUE="Get Report">
54 <% include('/elements/footer.html') %>
59 unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
60 or $FS::CurrentUser::CurrentUser->access_right('Financial reports');