stray closing /TABLE in the no-ticket case
[freeside.git] / httemplate / search / report_cust_bill_pkg_discount.html
1 <& /elements/header.html, 'Discount report' &>
2
3 <FORM ACTION="cust_bill_pkg_discount.html" METHOD="GET">
4
5
6 <TABLE>
7
8   <& /elements/tr-select-discount_class.html,
9        'field'       => 'discount_classnum',
10        'pre_options' => [ '0' => 'all' ],
11        'empty_label' => '(none)'
12   &>
13
14   <& /elements/tr-select-user.html,
15        'label'       => 'Discounts by employee: ',
16        'access_user' => $access_user,
17   &>
18
19   <& /elements/tr-select-agent.html,
20        'curr_value'    => scalar( $cgi->param('agentnum') ),
21        'label'         => 'for agent: ',
22        'disable_empty' => 0,
23   &>
24
25   <& /elements/tr-input-beginning_ending.html &>
26
27 <!-- doesn't actually work yet, needs support in cust_bill_pkg_discount.html
28   <& /elements/tr-input-lessthan_greaterthan.html,
29        'label' => 'Amount',
30        'field' => 'amount',
31   &>
32 -->
33
34 </TABLE>
35
36 <BR>
37 <INPUT TYPE="submit" VALUE="Get Report">
38
39 </FORM>
40
41 <& /elements/footer.html &>
42 <%init>
43
44 die "access denied"
45   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
46
47 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_pkg_discount');
48
49 </%init>