Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / search / report_cust_timespan.html
1 <& /elements/header.html, mt($title) &>
2
3 <FORM ACTION="cust_timespan.html" METHOD="GET">
4
5 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
6
7   <& /elements/tr-select-agent.html,
8                  'curr_value'    => scalar( $cgi->param('agentnum') ),
9                  'label'         => emt('Contacts for agent: '),
10                  'disable_empty' => 0,
11   &>
12
13   <& /elements/tr-select.html,
14        'label'      => 'Customer status',
15        'field'      => 'cust_status',
16        'options'    => [ 'cancelled', 'suspended'],
17        'labels'     => { 'cancelled'     => 'Cancelled Customers',
18                          'suspended'     => 'Suspended Customers',
19                        },
20        'curr_value' => scalar( $cgi->param('cust_status') ),
21   &>
22
23   <& /elements/tr-input-beginning_ending.html &>
24
25 </FORM>
26
27 </TABLE>
28
29 <BR>
30 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
31
32 </FORM>
33
34 <& /elements/footer.html &>
35 <%init>
36
37 die "access denied"
38   unless $FS::CurrentUser::CurrentUser->access_right('List contacts');
39
40 my $conf = new FS::Conf;
41
42 my $title = 'Customer Timespan Report';
43
44 </%init>