Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius...
[freeside.git] / httemplate / search / report_prepaid_income.html
1 <% include('/elements/header.html','Prepaid Income (Unearned Revenue) Report')%>
2
3 <% include('/elements/init_calendar.html') %>
4
5 <FORM ACTION="prepaid_income.html" METHOD="GET">
6
7 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
8
9   <TR>
10     <TH CLASS="background" COLSPAN=2 ALIGN="left">
11       <FONT SIZE="+1">Search options</FONT>
12     </TH>
13   </TR>
14
15   <TR>
16     <TD ALIGN="right">As of </TD>
17     <TD>
18       <INPUT TYPE="text" NAME="date" ID="date_text" VALUE="now">
19       <IMG SRC="../images/calendar.png" ID="date_button" STYLE="cursor: pointer" TITLE="Select date">
20     </TD>
21   </TR>
22   <TR>
23     <TD>
24     </TD>
25     <TD><FONT SIZE="-1"><i>m/d/y</i></FONT></TD>
26   </TR>
27
28   <TR>
29     <TD COLSPAN=2>&nbsp;</TD>
30   </TR>
31
32   <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
33   
34   <& /elements/tr-select-cust_main-status.html,
35       label => emt('Customer Status') &>
36   <& /elements/tr-select-cust_class.html,
37       label => emt('Customer Class'), field => 'cust_classnum', multiple => 1 &>
38   <& /elements/tr-select.html,
39       label => 'Invoice Status',
40       field => 'mode',
41       options => [ qw(billed paid) ] &>
42   <TR>
43     <TD ALIGN="right">
44       <INPUT TYPE="checkbox" NAME="include_monthly" VALUE=1>
45     </TD>
46     <TD ALIGN="left"><% emt('Include packages with period < 1 month') %>
47     </TD>
48   </TR>
49   <TR>
50     <TD COLSPAN=2>&nbsp;</TD>
51   </TR>
52
53   <TR>
54     <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" VALUE="Generate report"></TD>
55   </TR>
56
57 </TABLE>
58
59 <SCRIPT TYPE="text/javascript">
60   Calendar.setup({
61     inputField: "date_text",
62     ifFormat:   "<% $date_format %>",
63     button:     "date_button",
64     align:      "BR"
65   });
66 </SCRIPT>
67
68 </FORM>
69
70 <% include('/elements/footer.html') %>
71 <%init>
72
73 die "access denied"
74   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
75
76 my $conf = new FS::Conf;
77 my $date_format = $conf->config('date_format') || '%m/%d/%Y';
78
79 </%init>