fix top subtotals on refund reports
[freeside.git] / httemplate / search / report_cust_credit_bill_pkg.html
1 <& /elements/header.html, mt('Credit application report') &>
2
3 <FORM ACTION="cust_credit_bill_pkg.html" METHOD="GET">
4 <!--<INPUT TYPE="hidden" NAME="magic" VALUE="_date">-->
5
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8 <& /elements/tr-select-user.html,
9               'label'       => emt('Employee: '),
10               'access_user' => $access_user,
11 &>
12
13 <& /elements/tr-select-agent.html,
14      curr_value    => scalar( $cgi->param('agentnum') ),
15      #label         => emt('Line items for agent: '),
16      disable_empty => 0,
17 &>
18
19 <!--
20 <& /elements/tr-select-cust_main-status.html,
21      label => emt('Customer status'),
22 &>
23 -->
24
25 <!-- customer
26 <& /elements/tr-select-cust_class.html,
27      'label'        => emt('Class'),
28      'multiple'     => 1,
29      'pre_options'  => [ '' => emt('(none)') ],
30      'all_selected' => 1,
31 &>
32 -->
33
34 <!-- some sort of label saying this is the credit date... -->
35 <& /elements/tr-input-beginning_ending.html,
36      'prefix' => 'credit',
37 &>
38
39 <& /elements/tr-input-lessthan_greaterthan.html,
40      label   => emt('Amount'),
41      field   => 'amount',
42 &>
43
44 <!--
45 <TR>
46   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="nottax" VALUE="Y" onClick="nottax_changed(this)" onChange="nottax_change(thid)"></TD>
47   <TD><% mt('Omit taxes') |h %></TD>
48 </TD>
49
50 <TR>
51   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="istax" VALUE="Y" onClick="istax_changed(this)" onChange="istax_change(thid)"></TD>
52   <TD><% mt('Taxes only') |h %></TD>
53 </TD>
54
55 <SCRIPT TYPE="text/javascript">
56   function nottax_changed (what) {
57     if (what.checked && what.form.istax.checked) {
58       what.form.istax.checked = false;
59     }
60   }
61   function istax_changed (what) {
62     if (what.checked && what.form.nottax.checked) {
63       what.form.nottax.checked = false;
64     }
65   }
66 </SCRIPT>
67 -->
68
69 </TABLE>
70
71 <BR>
72 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
73
74 </FORM>
75
76 <& /elements/footer.html &>
77 <%init>
78
79 #Financial reports?
80 die "access denied"
81   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
82
83 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_credit');
84
85 my $conf = new FS::Conf;
86
87 </%init>
88