X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_credit.html;h=9c719b7870cd0afca48c427a3302f45064739e6c;hb=2ab068f449eb97a10e18d20e9dab5ab9faa017e7;hp=ab481025e34c92e1f8d0d28ebf6aeb0cbd1800a9;hpb=39fd666a49b2be516967131a46891f17ce0101da;p=freeside.git
diff --git a/httemplate/search/report_cust_credit.html b/httemplate/search/report_cust_credit.html
index ab481025e..9c719b787 100644
--- a/httemplate/search/report_cust_credit.html
+++ b/httemplate/search/report_cust_credit.html
@@ -4,22 +4,17 @@
-
- Credits by employee: |
-
-
-
- |
-
+
+ <% include( '/elements/tr-select-otaker.html',
+ 'label' => 'Credits by employee: ',
+ 'otakers' => \@otakers,
+ )
+ %>
<% include( '/elements/tr-select-agent.html',
- $cgi->param('agentnum'),
- 'label' => 'for agent: ',
+ 'curr_value' => scalar( $cgi->param('agentnum') ),
+ 'label' => 'for agent: ',
+ 'disable_empty' => 0,
)
%>
@@ -42,6 +37,9 @@
<%init>
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
+
my $sth = dbh->prepare("SELECT DISTINCT otaker FROM cust_credit")
or die dbh->errstr;
$sth->execute or die $sth->errstr;