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 => mt('Customer Status') &>
36 <& /elements/tr-select.html,
37 label => 'Invoice Status',
39 options => [ qw(billed paid) ] &>
42 <INPUT TYPE="checkbox" NAME="include_monthly" VALUE=1>
44 <TD ALIGN="left"><% mt('Include packages with period ≤ 1 month') %>
48 <TD COLSPAN=2> </TD>
52 <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" VALUE="Generate report"></TD>
57 <SCRIPT TYPE="text/javascript">
59 inputField: "date_text",
60 ifFormat: "<% $date_format %>",
61 button: "date_button",
68 <% include('/elements/footer.html') %>
72 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
74 my $conf = new FS::Conf;
75 my $date_format = $conf->config('date_format') || '%m/%d/%Y';