Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / search / report_cust_bill_pay_pkg.html
1 <& /elements/header.html, mt('Payment application report') &>
2
3 <FORM ACTION="cust_bill_pay_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 payment date... -->
35 <& /elements/tr-input-beginning_ending.html,
36      'prefix' => 'payment',
37 &>
38
39 <& /elements/tr-input-lessthan_greaterthan.html,
40      label   => emt('Amount'),
41      field   => 'paid',
42 &>
43
44   <& /elements/tr-checkbox.html,
45                 'label' => emt('Display order number'),
46                 'field' => 'show_order_number',
47                 'value' => 1,
48                 'cell_style' => 'font-weight: normal', #for consistency
49   &>
50
51 <!--
52 <TR>
53   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="nottax" VALUE="Y" onClick="nottax_changed(this)" onChange="nottax_change(thid)"></TD>
54   <TD><% mt('Omit taxes') |h %></TD>
55 </TD>
56
57 <TR>
58   <TD ALIGN="right"><INPUT TYPE="checkbox" NAME="istax" VALUE="Y" onClick="istax_changed(this)" onChange="istax_change(thid)"></TD>
59   <TD><% mt('Taxes only') |h %></TD>
60 </TD>
61
62 <SCRIPT TYPE="text/javascript">
63   function nottax_changed (what) {
64     if (what.checked && what.form.istax.checked) {
65       what.form.istax.checked = false;
66     }
67   }
68   function istax_changed (what) {
69     if (what.checked && what.form.nottax.checked) {
70       what.form.nottax.checked = false;
71     }
72   }
73 </SCRIPT>
74 -->
75
76 </TABLE>
77
78 <BR>
79 <INPUT TYPE="submit" VALUE="<% mt('Get Report') |h %>">
80
81 </FORM>
82
83 <& /elements/footer.html &>
84 <%init>
85
86 #Financial reports?
87 die "access denied"
88   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
89
90 my $access_user = $FS::CurrentUser::CurrentUser->access_users_hashref('table' => 'cust_pay');
91
92 my $conf = new FS::Conf;
93
94 </%init>
95