quiet warnings about CGI::param in list context
[freeside.git] / httemplate / search / report_cust_credit.html
1 <& /elements/header.html, mt($title) &>
2
3 <FORM ACTION="cust_credit.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
5 <INPUT TYPE="hidden" NAME="unapplied" VALUE="<% $unapplied %>">
6
7 <TABLE>
8
9   <& /elements/tr-select-user.html,
10                 'label'       => emt('Credits by employee: '),
11                 'access_user' => $access_user,
12   &>
13
14   <& /elements/tr-select-agent.html,
15                  'curr_value'    => scalar( $cgi->param('agentnum') ),
16                  'label'         => emt('for agent: '),
17                  'disable_empty' => 0,
18   &>
19
20   <& /elements/tr-input-beginning_ending.html &>
21
22   <& /elements/tr-input-lessthan_greaterthan.html,
23                 'label' => emt('Amount'),
24                 'field' => 'amount',
25   &>
26
27   <& /elements/tr-select-reason.html,
28        'label'        => emt('Reason').':',
29        'field'        => 'reasonnum',
30        'reason_class' => 'R',
31        'cgi'          => $cgi,
32        'hide_addnew'  => 1,
33        'pre_options'  => [ 0 => emt('(any reason)') ],
34   &>
35
36   <& /elements/tr-checkbox.html,
37        'label' => emt('Show Voided Credits').':',
38        'field' => 'show_voided_credits',
39        'value' => '1',
40   &>
41
42
43 </TABLE>
44
45 <BR>
46 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
47
48 </FORM>
49
50 <& /elements/footer.html &>
51
52 <%init>
53
54 die "access denied"
55   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
56
57 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_credit');
58
59 my $unapplied = $cgi->param('unapplied') ? 1 : 0;
60
61 my $title = $cgi->param('unapplied') ?
62               'Unapplied credit report' : 'Credit report';
63
64 </%init>