1 <% include('/elements/header.html', 'Time worked report criteria' ) %>
3 <FORM ACTION="rt_transaction.html" METHOD="GET">
7 <% include ( '/elements/tr-input-beginning_ending.html' ) %>
9 <& /elements/tr-select.html,
10 label => 'Time category:',
12 options => [ '', 'development', 'support' ],
13 option_labels => { '' => 'all' },
14 curr_value => 'development',
17 <% include ( '/elements/tr-select-otaker.html' ) %>
19 <% include ( '/elements/tr-input-text.html',
20 'label' => 'Ticket #',
21 'field' => 'ticketid',
26 <TD ALIGN="right">Account:</TD>
28 <SELECT NAME="svcnum">
29 <OPTION VALUE="">(all)
30 % foreach my $svc_acct (@svc_acct) {
31 <OPTION VALUE="<% $svc_acct->svcnum %>"><% $svc_acct->username %></OPTION>
40 <INPUT TYPE="submit" VALUE="Search">
44 <% include('/elements/footer.html') %>
48 unless $FS::CurrentUser::CurrentUser->access_right('List rating data');
50 my $conf = new FS::Conf;
52 my @pkgparts = $conf->config('support_packages');
57 'table' => 'svc_acct',
58 'addl_from' => ' LEFT JOIN cust_svc USING ( svcnum ) '.
59 ' LEFT JOIN cust_pkg USING ( pkgnum ) ',
60 'extra_sql' => 'WHERE pkgpart IN ('. join(',', @pkgparts). ')',
61 'order_by' => 'ORDER BY username',