Revert "RT# 39340 - configured the minimal selfservice to get mac address from radius...
[freeside.git] / httemplate / search / report_h_cust_pay.html
1 <% include('/elements/header.html', 'Payment transaction history' ) %>
2
3 <FORM ACTION="h_cust_pay.html" METHOD="GET">
4 <INPUT TYPE="hidden" NAME="magic" VALUE="_date">
5
6 <TABLE BGCOLOR="#cccccc" CELLSPACING=0>
7
8   <TR>
9     <TH CLASS="background" COLSPAN=2 ALIGN="left">
10       <FONT SIZE="+1">Search options</FONT>
11     </TH>
12   </TR>
13
14 %#history stuff
15   <TR>
16     <TD ALIGN="right">Search transactions for: </TD>
17     <TD>
18       <SELECT NAME="history_action">
19         <OPTION VALUE="insert,replace_old,replace_new,delete">(all changes)
20         <OPTION VALUE="delete">Insertions
21         <OPTION VALUE="replace_old,replace_new">Replacements
22         <OPTION VALUE="delete">Deletions
23       </SELECT>
24     </TD>
25   </TR>
26
27   <TR>
28     <TD ALIGN="right" VALIGN="center">Transaction date: </TD>
29     <TD>
30       <TABLE>
31         <% include( '/elements/tr-input-beginning_ending.html',
32                       prefix => 'history_date',
33                       layout => 'horiz',
34                   )
35         %>
36       </TABLE>
37     </TD>
38   </TR>
39 %#eo history stuff
40
41   <TR>
42     <TD ALIGN="right">Payments of type: </TD>
43     <TD>
44       <SELECT NAME="payby" onChange="payby_changed(this)">
45         <OPTION VALUE="">all</OPTION>
46         <OPTION VALUE="CARD">credit card (all)</OPTION>
47         <OPTION VALUE="CARD-VisaMC">credit card (Visa/MasterCard)</OPTION>
48         <OPTION VALUE="CARD-Amex">credit card (American Express)</OPTION>
49         <OPTION VALUE="CARD-Discover">credit card (Discover)</OPTION>
50         <OPTION VALUE="CARD-Maestro">credit card (Maestro/Switch/Solo)</OPTION>
51         <OPTION VALUE="CHEK">electronic check / ACH</OPTION>
52         <OPTION VALUE="BILL">check</OPTION>
53         <OPTION VALUE="PREP">prepaid card</OPTION>
54         <OPTION VALUE="CASH">cash</OPTION>
55         <OPTION VALUE="WEST">Western Union</OPTION>
56         <OPTION VALUE="MCRD">manual credit card</OPTION>
57         <OPTION VALUE="MCHK">manual electronic check</OPTION>
58       </SELECT>
59     </TD>
60   </TR>
61
62   <SCRIPT TYPE="text/javascript">
63   
64     function payby_changed(what) {
65       if ( what.options[what.selectedIndex].value == 'BILL' ) {
66         document.getElementById('checkno_caption').style.color = '#000000';
67         what.form.payinfo.disabled = false;
68         what.form.payinfo.style.backgroundColor = '#ffffff';
69       } else {
70         document.getElementById('checkno_caption').style.color = '#bbbbbb';
71         what.form.payinfo.disabled = true;
72         what.form.payinfo.style.backgroundColor = '#dddddd';
73       }
74     }
75
76   </SCRIPT>
77
78   <TR>
79     <TD ALIGN="right"><FONT ID="checkno_caption" COLOR="#bbbbbb">Check #: </FONT></TD>
80     <TD>
81       <INPUT TYPE="text" NAME="payinfo" DISABLED STYLE="background-color: #dddddd">
82     </TD>
83   </TR>
84
85   <% include( '/elements/tr-select-agent.html',
86                  'curr_value'    => scalar($cgi->param('agentnum')),
87                  'label'         => 'for agent: ',
88                  'disable_empty' => 0,
89              )
90   %>
91
92   <% include( '/elements/tr-select-user.html' ) %>
93
94   <TR>
95     <TD ALIGN="right" VALIGN="center">Payment</TD>
96     <TD>
97       <TABLE>
98         <% include( '/elements/tr-input-beginning_ending.html',
99                       layout   => 'horiz',
100                   )
101         %>
102       </TABLE>
103     </TD>
104   </TR>
105
106   <% include( '/elements/tr-input-lessthan_greaterthan.html',
107                 'label' => 'Amount',
108                 'field' => 'paid',
109             )
110   %>
111
112 </TABLE>
113
114 <BR>
115 <INPUT TYPE="submit" VALUE="Get Report">
116
117 </FORM>
118
119 <% include('/elements/footer.html') %>
120 <%init>
121
122 die "access denied"
123   unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
124
125 </%init>