1 <% include('/elements/header.html', 'Package Churn Summary' ) %>
3 <FORM ACTION="cust_pkg.html" METHOD="GET">
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7 <& /elements/tr-select-from_to.html &>
9 <& /elements/tr-select-agent.html,
10 'curr_value' => scalar($cgi->param('agentnum')),
11 'label' => 'For agent: ',
15 <& /elements/tr-select-pkg_class.html,
17 'pre_options' => [ '0' => '(empty class)' ],
21 <& /elements/tr-select-part_referral.html,
26 <& /elements/tr-select-table.html,
29 'field' => 'towernum',
30 'name_col' => 'towername',
32 'pre_options' => [ 0 => '(none)' ],
34 'hashref' => { disabled => '' },
37 <& /elements/tr-input-text.html,
42 <& /elements/tablebreak-tr-title.html,
43 'value' => mt('Display options')
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',
57 <& /elements/tr-checkbox.html,
58 'field' => 'normalize',
60 'label' => 'Show percentages'
65 <BR><INPUT TYPE="submit" VALUE="Display">
68 <% include('/elements/footer.html') %>
71 #XXX use a different ACL for package churn?
73 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');