simplify UI for projected sales report, #15393
[freeside.git] / httemplate / graph / report_cust_bill_pkg.html
1 <% include('/elements/header.html', 'Sales Report' ) %>
2
3 <FORM ACTION="cust_bill_pkg.cgi" METHOD="GET">
4
5 <TABLE>
6
7 <% include('/elements/tr-select-from_to.html' ) %>
8
9 <TR>
10   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="projection" VALUE="1"></TD>
11   <TD>Show projected data for future months</TD>
12 </TR>
13
14 <% include('/elements/tr-select-agent.html',
15              'label'         => 'For agent: ',
16              'disable_empty' => 0,
17              'pre_options'   => [ 'all' => 'all (aggregate)' ],
18              'empty_label'   => 'all (breakdown)',
19           )
20 %>
21
22 <% include('/elements/tr-select-pkg_class.html',
23               'pre_options' => [ 'all'  => 'all (aggregate)',
24                                  '0' => 'all (breakdown)' ],
25               'empty_label' => '(empty class)',
26            )
27 %>
28
29 <!--
30 <TR>
31   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="separate_0freq" VALUE="1"></TD>
32   <TD>Separate one-time vs. recurring sales</TD>
33 </TR>
34 -->
35
36 % foreach ( qw(Setup Usage) ) {
37 <& /elements/tr-select.html,
38     'label'   => "$_ fees",
39     'field'   => 'use_'.lc($_),
40     'options' => [ 0, 1, 2 ],
41     'labels'  => { 0 => 'Combine', 1 => 'Separate', 2 => 'Do not show' },
42 &>
43 % }
44
45 <TR>
46   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="use_override" VALUE="1"></TD>
47   <TD>Separate sub-packages from parents</TD>
48 </TR>
49
50 <TR>
51   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="average_per_cust_pkg" VALUE="1"></TD>
52   <TD>Average per customer package</TD>
53 </TR>
54
55 <TR>
56   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="distribute" VALUE="1"></TD>
57   <TD>Distribute recurring fees over billing period</TD>
58 </TR>
59
60 </TABLE>
61
62 <BR><INPUT TYPE="submit" VALUE="Display">
63 </FORM>
64
65 <% include('/elements/footer.html') %>
66 <%init>
67
68 die "access denied"
69   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
70
71 </%init>