summaryrefslogtreecommitdiff
path: root/httemplate/graph/report_cust_pkg.html
blob: 0da5016a7e7661e5a02c5fe0ab658e8d84276026 (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
<% include('/elements/header.html', 'Package Churn Summary' ) %>

<FORM ACTION="cust_pkg.html" METHOD="GET">

<TABLE BGCOLOR="#cccccc" CELLSPACING=0>

<& /elements/tr-select-from_to.html &>

<& /elements/tr-select-agent.html,
  'curr_value'    => scalar($cgi->param('agentnum')),
  'label'         => 'For agent: ',
  'disable_empty' => 0,
&>

<& /elements/tr-select-pkg_class.html,
  'multiple'      => 1,
  'pre_options'   => [ '0' => '(empty class)' ],
  'disable_empty' => 1,
&>

<& /elements/tr-select-part_referral.html,
  'multiple'      => 1,
  'disable_empty' => 1,
&>

<& /elements/tr-select-table.html,
  'label'         => 'Tower',
  'table'         => 'tower',
  'field'         => 'towernum',
  'name_col'      => 'towername',
  'multiple'      => 1,
  'pre_options'   => [ 0 => '(none)' ],
  'size'          => 8,
  'hashref'       => { disabled => '' },
&>

<& /elements/tr-input-text.html,
  'field'         => 'zip',
  'label'         => 'Zip',
&>

<& /elements/tablebreak-tr-title.html,
  'value' => mt('Display options')
&>

<& /elements/tr-select.html,
  'field'         => 'breakdown_by',
  'label'         => 'Breakdown by: ',
  'options'       => [ '', 'classnum', 'refnum', 'towernum' ],
  'labels'        => { ''         => '(none)',
                       'classnum' => 'Package class',
                       'refnum'   => 'Advertising source',
                       'towernum' => 'Tower',
                     },
&>

<& /elements/tr-checkbox.html,
  'field'         => 'normalize',
  'value'         => 1,
  'label'         => 'Show percentages'
&>

</TABLE>

<BR><INPUT TYPE="submit" VALUE="Display">
</FORM>

<% include('/elements/footer.html') %>
<%init>

#XXX use a different ACL for package churn?
die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');

</%init>