Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius...
[freeside.git] / httemplate / search / report_receivables.html
1 <& /elements/header.html, mt('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"><% mt('Search options') |h %></FONT>
10     </TH>
11   </TR>
12
13   <& /elements/tr-select-agent.html, 'disable_empty'=>0  &>
14
15   <& /elements/tr-select-cust_main-status.html,
16                 'label' => emt('Customer Status'),
17   &>
18
19   <& /elements/tr-select-cust_class.html,
20      'label'        => emt('Customer class'),
21      'field'        => 'cust_classnum',
22      'multiple'     => 1,
23      'pre_options'  => [ '' => emt('(none)') ],
24      'all_selected' => 1,
25   &>
26
27   <TR>
28     <TD ALIGN="right"><% mt('Customers') |h %></TD>
29     <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';
37 }
38       </SCRIPT>
39       <TABLE STYLE="padding: 0px">
40         <TR>
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>
43         </TR>
44         <TR>
45             <TD><INPUT TYPE="radio" NAME="all_customers" VALUE="0" CHECKED onClick="toggle(this)"></TD>
46             <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/;
50             <% $str %>
51             </TD>
52         </TR>
53         <TR>
54             <TD></TD>
55             <TD><INPUT TYPE="checkbox" NAME="negative" VALUE="1">&nbsp;<% mt('Including customers with credit balances') |h %></TD>
56         </TR>
57       </TABLE>
58     </TD>
59   </TR>
60   <& /elements/tr-input-date-field.html, {
61                 'name'      => 'as_of',
62                 'value'     => time,
63                 'label'     => emt('At the end of date '),
64                 'format'    => FS::Conf->new->config('date_format') || '%m/%d/%Y',
65                 } 
66   &>
67
68   <TR>
69     <TH CLASS="background" COLSPAN=2>&nbsp;</TH>
70   </TR>
71
72   <TR>
73     <TH CLASS="background" COLSPAN=2 ALIGN="left"><FONT SIZE="+1"><% mt('Display options') |h %></FONT></TH>
74   </TR>
75   <& /elements/tr-select-cust-fields.html &>
76
77 </TABLE>
78
79 <BR><INPUT TYPE="submit" VALUE="Get Report">
80 </FORM>
81
82 <& /elements/footer.html &>
83
84 <%init>
85
86 die "access denied"
87   unless $FS::CurrentUser::CurrentUser->access_right('Receivables report')
88       or $FS::CurrentUser::CurrentUser->access_right('Financial reports');
89
90 </%init>