X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_rt_transaction.html;h=91dc4a0cf6cafe784bdd023f653f97cacd292347;hp=9b7b7cbbbb1ec2e911e1ea6a065a4c496c0802b2;hb=ae2ce7f3fc2a0fe00f05145ce64e8b6b8c034631;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/httemplate/search/report_rt_transaction.html b/httemplate/search/report_rt_transaction.html index 9b7b7cbbb..91dc4a0cf 100644 --- a/httemplate/search/report_rt_transaction.html +++ b/httemplate/search/report_rt_transaction.html @@ -6,8 +6,34 @@ <% include ( '/elements/tr-input-beginning_ending.html' ) %> + <& /elements/tr-select.html, + label => 'Time category:', + field => 'category', + options => [ '', 'development', 'support' ], + option_labels => { '' => 'all' }, + curr_value => 'development', + &> + <% include ( '/elements/tr-select-otaker.html' ) %> + <% include ( '/elements/tr-input-text.html', + 'label' => 'Ticket #', + 'field' => 'ticketid', + ) + %> + + + Account: + + + + +
@@ -21,4 +47,19 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('List rating data'); +my $conf = new FS::Conf; + +my @pkgparts = $conf->config('support_packages'); + +my @svc_acct = (); +if ( @pkgparts ) { + @svc_acct = qsearch({ + 'table' => 'svc_acct', + 'addl_from' => ' LEFT JOIN cust_svc USING ( svcnum ) '. + ' LEFT JOIN cust_pkg USING ( pkgnum ) ', + 'extra_sql' => 'WHERE pkgpart IN ('. join(',', @pkgparts). ')', + 'order_by' => 'ORDER BY username', + }); +} +