1 <& /elements/header.html, mt($title) &>
3 <FORM ACTION="cust_credit.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
5 <INPUT TYPE="hidden" NAME="unapplied" VALUE="<% $unapplied %>">
9 <& /elements/tr-select-user.html,
10 'label' => emt('Credits by employee: '),
11 'access_user' => $access_user,
14 <& /elements/tr-select-agent.html,
15 'curr_value' => scalar( $cgi->param('agentnum') ),
16 'label' => emt('for agent: '),
20 <& /elements/tr-input-beginning_ending.html &>
22 <& /elements/tr-input-lessthan_greaterthan.html,
23 'label' => emt('Amount'),
30 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
34 <& /elements/footer.html &>
39 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
41 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_credit');
43 my $unapplied = $cgi->param('unapplied') ? 1 : 0;
45 my $title = $cgi->param('unapplied') ?
46 'Unapplied credit report' : 'Credit report';