This commit was generated by cvs2svn to compensate for changes in r9232,
[freeside.git] / httemplate / misc / batch-cust_pay.html
1 <% include('/elements/header.html', 'Quick payment entry') %>
2
3 <% include('/elements/error.html') %>
4
5 <SCRIPT TYPE="text/javascript">
6 function warnUnload() {
7   if(document.getElementById("OneTrueTable").rows.length > 3 &&
8      !document.OneTrueForm.submit.disabled) {
9     return "The current batch will be lost.";
10   }
11   else {
12     return null;
13   }
14 }
15 window.onbeforeunload = warnUnload;
16 </SCRIPT>
17
18 <FORM ACTION="process/batch-cust_pay.cgi" NAME="OneTrueForm" METHOD="POST" onsubmit="document.OneTrueForm.submit.disabled=true;window.onbeforeunload = null;">
19
20 <!-- <B>Batch</B> <INPUT TYPE="text" NAME="paybatch"><BR><BR> -->
21
22 <% include( "/elements/customer-table.html",
23               name_singular => 'payment',
24               header  => [ '', 'Amount', 'Check #', '' ],
25               fields  => [ sub {'$'}, 'paid', 'payinfo', 'error', ],
26               types   => [ 'immutable', '', '', 'immutable', ],
27               align   => [ 'c', 'r', 'r', 'l' ],
28               sizes   => [ 0, 8, 10, 0, ],
29               colors  => [ '', '', '', '#ff0000' ],
30               param   => { () },
31               footer  => [ '$', '_TOTAL', '', '' ],
32               footer_align => [ 'c', 'r', 'r', '' ],
33           )
34 %>
35
36 <!-- <BR>
37 <INPUT TYPE="button" VALUE="TEST addrow" onclick="addRow()"> -->
38
39 <BR>
40 <INPUT TYPE="submit" NAME="submit" VALUE="Post payment batch">
41
42 </FORM>
43
44 <% include('/elements/footer.html') %>
45
46 <%init>
47
48 die "access denied"
49   unless $FS::CurrentUser::CurrentUser->access_right('Post payment batch');
50
51 </%init>