summaryrefslogtreecommitdiff
path: root/httemplate/misc/batch-cust_pay.html
blob: 505f2d0ff915856b7d0337150c1f312a1d0ba63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<% include('/elements/header.html', 'Quick payment entry') %>

<% include('/elements/error.html') %>

<SCRIPT TYPE="text/javascript">
function warnUnload() {
  if(document.getElementById("OneTrueTable").rows.length > 3 &&
     !document.OneTrueForm.submit.disabled) {
    return "The current batch will be lost.";
  }
  else {
    return null;
  }
}
window.onbeforeunload = warnUnload;
</SCRIPT>

<FORM ACTION="process/batch-cust_pay.cgi" NAME="OneTrueForm" METHOD="POST" onsubmit="document.OneTrueForm.submit.disabled=true;window.onbeforeunload = null;">

<!-- <B>Batch</B> <INPUT TYPE="text" NAME="paybatch"><BR><BR> -->

<% include( "/elements/customer-table.html",
              name_singular => 'payment',
              header  => [ '', 'Amount', 'Check #', '' ],
              fields  => [ sub {'$'}, 'paid', 'payinfo', 'error', ],
              types   => [ 'immutable', '', '', 'immutable', ],
              align   => [ 'c', 'r', 'r', 'l' ],
              sizes   => [ 0, 8, 10, 0, ],
              colors  => [ '', '', '', '#ff0000' ],
              param   => { () },
              footer  => [ '$', '_TOTAL', '', '' ],
              footer_align => [ 'c', 'r', 'r', '' ],
          )
%>

<!-- <BR>
<INPUT TYPE="button" VALUE="TEST addrow" onclick="addRow()"> -->

<BR>
<INPUT TYPE="submit" NAME="submit" VALUE="Post payment batch">

</FORM>

<% include('/elements/footer.html') %>

<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Post payment batch');

</%init>