X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_rt_transaction.html;h=61445bd1e857d6ecc7d8c86292bcd004124bb209;hb=4f25d34901fb6a358af5b5009608c5162e745042;hp=89629e8434b50533cd6cdae924b106ad75ad247e;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git diff --git a/httemplate/search/report_rt_transaction.html b/httemplate/search/report_rt_transaction.html index 89629e843..61445bd1e 100644 --- a/httemplate/search/report_rt_transaction.html +++ b/httemplate/search/report_rt_transaction.html @@ -8,15 +8,49 @@ <% include ( '/elements/tr-select-otaker.html' ) %> + <% include ( '/elements/tr-input-text.html', + 'label' => 'Ticket #', + 'field' => 'ticketid', + ) + %> + + + Account + + + + +
+ + <% include('/elements/footer.html') %> <%init> 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). ')', + }); +} +