1 <% include('/elements/header.html','Prepaid Income (Unearned Revenue) Report')%>
3 <% include('/elements/init_calendar.html') %>
5 <FORM ACTION="prepaid_income.html" METHOD="GET">
7 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
10 <TH CLASS="background" COLSPAN=2 ALIGN="left">
11 <FONT SIZE="+1">Search options</FONT>
16 <TD ALIGN="right">As of </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">
25 <TD><FONT SIZE="-1"><i>m/d/y</i></FONT></TD>
29 <TD COLSPAN=2> </TD>
32 <% include( '/elements/tr-select-agent.html', 'disable_empty'=>0 ) %>
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',
41 options => [ qw(billed paid) ] &>
44 <INPUT TYPE="checkbox" NAME="include_monthly" VALUE=1>
46 <TD ALIGN="left"><% emt('Include packages with period < 1 month') %>
50 <TD COLSPAN=2> </TD>
54 <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" VALUE="Generate report"></TD>
59 <SCRIPT TYPE="text/javascript">
61 inputField: "date_text",
62 ifFormat: "<% $date_format %>",
63 button: "date_button",
70 <% include('/elements/footer.html') %>
74 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
76 my $conf = new FS::Conf;
77 my $date_format = $conf->config('date_format') || '%m/%d/%Y';