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