projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
849d0cb
)
lock down manual batch approval
author
mark
<mark>
Sat, 12 Feb 2011 02:37:05 +0000
(
02:37
+0000)
committer
mark
<mark>
Sat, 12 Feb 2011 02:37:05 +0000
(
02:37
+0000)
httemplate/search/cust_pay_batch.cgi
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_pay_batch.cgi
b/httemplate/search/cust_pay_batch.cgi
index
6d628d3
..
4a22487
100755
(executable)
--- a/
httemplate/search/cust_pay_batch.cgi
+++ b/
httemplate/search/cust_pay_batch.cgi
@@
-207,7
+207,10
@@
if ( $pay_batch ) {
}
$html_init .= qq!<INPUT TYPE="hidden" NAME="batchnum" VALUE="$batchnum">!;
$html_init .= '<TR> <INPUT TYPE="submit" VALUE="Upload"></FORM><BR> </TR>';
}
$html_init .= qq!<INPUT TYPE="hidden" NAME="batchnum" VALUE="$batchnum">!;
$html_init .= '<TR> <INPUT TYPE="submit" VALUE="Upload"></FORM><BR> </TR>';
- if ( $conf->exists('batch-manual_approval') and $pay_batch->status eq 'I') {
+ if ( $conf->exists('batch-manual_approval')
+ and $conf->config('batch-fixed_format-CHEK') eq 'td_eft1464'
+ and $pay_batch->status eq 'I'
+ and $pay_batch->payby eq 'CHEK' ) {
$html_init .= qq!<TR><INPUT TYPE="button" VALUE="Manually approve" onclick="
if ( confirm('Approve all remaining payments in this batch?') )
window.location.href='${p}misc/process/pay_batch-approve.cgi?batchnum=$batchnum';"></TR>!
$html_init .= qq!<TR><INPUT TYPE="button" VALUE="Manually approve" onclick="
if ( confirm('Approve all remaining payments in this batch?') )
window.location.href='${p}misc/process/pay_batch-approve.cgi?batchnum=$batchnum';"></TR>!