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