X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_cust_credit.html;h=0490f43237129cad3a96fbb5b491b6b84faf8910;hp=b614e87b29beab09bf1456213e4cc5210ee005ea;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=b1fc20ef3b68a8536163fbb17c57bca15555f3c4 diff --git a/httemplate/search/report_cust_credit.html b/httemplate/search/report_cust_credit.html index b614e87b2..0490f4323 100644 --- a/httemplate/search/report_cust_credit.html +++ b/httemplate/search/report_cust_credit.html @@ -1,68 +1,53 @@ - - - Credit report criteria - - - - - - -

Credit report criteria

-
- - - - -<% - my $sth = dbh->prepare("SELECT DISTINCT otaker FROM cust_credit") - or die dbh->errstr; - $sth->execute or die $sth->errstr; - my @otakers = map { $_->[0] } @{$sth->fetchall_arrayref}; -%> - - - - - - - - - - - - - - - - -
Credits by employee: -
for agent: -
From:
m/d/y
To:
m/d/y
-
-
- - +<% include('/elements/header.html', 'Credit report' ) %> + +
+ + + + + + + + + + <% include( '/elements/tr-select-agent.html', + 'curr_value' => scalar( $cgi->param('agentnum') ), + 'label' => 'for agent: ', + ) + %> + + <% include( '/elements/tr-input-beginning_ending.html' ) %> + + <% include( '/elements/tr-input-lessthan_greaterthan.html', + 'label' => 'Amount', + 'field' => 'amount', + ) + %> + +
Credits by employee: + +
+ +
+ + +
+ +<% include('/elements/footer.html') %> + +<%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; +my @otakers = map { $_->[0] } @{$sth->fetchall_arrayref}; + +