enable CardFortress in test database, #71513
[freeside.git] / httemplate / graph / report_cust_pkg.html
1 <% include('/elements/header.html', 'Package Churn Summary' ) %>
2
3 <FORM ACTION="cust_pkg.html" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7 <& /elements/tr-select-from_to.html &>
8
9 <& /elements/tr-select-agent.html,
10   'curr_value'    => scalar($cgi->param('agentnum')),
11   'label'         => 'For agent: ',
12   'disable_empty' => 0,
13 &>
14
15 <& /elements/tr-select-pkg_class.html,
16   'multiple'      => 1,
17   'pre_options'   => [ '0' => '(empty class)' ],
18   'disable_empty' => 1,
19 &>
20
21 <& /elements/tr-select-part_referral.html,
22   'multiple'      => 1,
23   'disable_empty' => 1,
24 &>
25
26 <& /elements/tr-select-table.html,
27   'label'         => 'Tower',
28   'table'         => 'tower',
29   'field'         => 'towernum',
30   'name_col'      => 'towername',
31   'multiple'      => 1,
32   'pre_options'   => [ 0 => '(none)' ],
33   'size'          => 8,
34   'hashref'       => { disabled => '' },
35 &>
36
37 <& /elements/tr-input-text.html,
38   'field'         => 'zip',
39   'label'         => 'Zip',
40 &>
41
42 <& /elements/tablebreak-tr-title.html,
43   'value' => mt('Display options')
44 &>
45
46 <& /elements/tr-select.html,
47   'field'         => 'breakdown_by',
48   'label'         => 'Breakdown by: ',
49   'options'       => [ '', 'classnum', 'refnum', 'towernum' ],
50   'labels'        => { ''         => '(none)',
51                        'classnum' => 'Package class',
52                        'refnum'   => 'Advertising source',
53                        'towernum' => 'Tower',
54                      },
55 &>
56
57 <& /elements/tr-checkbox.html,
58   'field'         => 'normalize',
59   'value'         => 1,
60   'label'         => 'Show percentages'
61 &>
62
63 </TABLE>
64
65 <BR><INPUT TYPE="submit" VALUE="Display">
66 </FORM>
67
68 <% include('/elements/footer.html') %>
69 <%init>
70
71 #XXX use a different ACL for package churn?
72 die "access denied"
73   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
74
75 </%init>