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