1 <& /elements/header.html, mt('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"><% mt('Search options') |h %></FONT>
13 <& /elements/tr-select-agent.html, 'disable_empty'=>0 &>
15 <& /elements/tr-select-cust_main-status.html,
16 'label' => emt('Customer Status'),
19 <& /elements/tr-select-cust_class.html,
20 'label' => emt('Customer class'),
21 'field' => 'cust_classnum',
23 'pre_options' => [ '' => emt('(none)') ],
28 <TD ALIGN="right"><% mt('Customers') |h %></TD>
30 <SCRIPT TYPE="text/javascript">
31 function toggle(obj) {
32 var f = document.OneTrueForm;
33 var val = (obj.value == obj.checked);
34 f.days.disabled = val;
35 f.negative.disabled = val;
36 f.days.style.backgroundColor = val ? '#dddddd' : '#ffffff';
39 <TABLE STYLE="padding: 0px">
41 <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="toggle(this)"></TD>
42 <TD><% mt('All customers (even those without an outstanding balance)') |h %></TD>
45 <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="toggle(this)"></TD>
47 % my $daysinput = qq!<INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0">!;
48 % my $str = emt("Customers with a balance over [_1] days old",'XXXDAYSXXX'); # yeah it's a hack
49 % $str =~ s/XXXDAYSXXX/$daysinput/;
55 <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1"> <% mt('Including customers with credit balances') |h %></TD>
60 <& /elements/tr-input-date-field.html, {
63 'label' => emt('At the end of date '),
64 'format' => FS::Conf->new->config('date_format') || '%m/%d/%Y',
69 <TH CLASS="background" COLSPAN=2> </TH>
73 <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1"><% mt('Display options') |h %></FONT></TH>
75 <& /elements/tr-select-cust-fields.html &>
79 <BR><INPUT TYPE="submit" VALUE="Get Report">
82 <& /elements/footer.html &>
87 unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
88 or $FS::CurrentUser::CurrentUser->access_right('Financial reports');