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'),
20 <TD ALIGN="right"><% mt('Customers') |h %></TD>
22 <SCRIPT TYPE="text/javascript">
23 function toggle(obj) {
24 var f = document.OneTrueForm;
25 var val = (obj.value == obj.checked);
26 f.days.disabled = val;
27 f.negative.disabled = val;
28 f.days.style.backgroundColor = val ? '#dddddd' : '#ffffff';
31 <TABLE STYLE="padding: 0px">
33 <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="1" onClick="toggle(this)"></TD>
34 <TD><% mt('All customers (even those without an outstanding balance)') |h %></TD>
37 <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="toggle(this)"></TD>
39 % my $daysinput = qq!<INPUT NAME="days" TYPE="text" SIZE=4 MAXLENGTH=3 VALUE="0">!;
40 % my $str = emt("Customers with a balance over [_1] days old",'XXXDAYSXXX'); # yeah it's a hack
41 % $str =~ s/XXXDAYSXXX/$daysinput/;
47 <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1"> <% mt('Including customers with credit balances') |h %></TD>
52 <& /elements/tr-input-date-field.html, {
55 'label' => emt('At the end of date '),
56 'format' => FS::Conf->new->config('date_format') || '%m/%d/%Y',
62 <BR><INPUT TYPE="submit" VALUE="Get Report">
65 <& /elements/footer.html &>
70 unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
71 or $FS::CurrentUser::CurrentUser->access_right('Financial reports');