[freeside-commits] freeside/httemplate/search cust_pay_batch.cgi, 1.17, 1.18

Mark Wells mark at wavetail.420.am
Fri Feb 11 18:36:59 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv4864/httemplate/search

Modified Files:
	cust_pay_batch.cgi 
Log Message:
lock down manual batch approval

Index: cust_pay_batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_pay_batch.cgi,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- cust_pay_batch.cgi	31 Jan 2011 20:28:27 -0000	1.17
+++ cust_pay_batch.cgi	12 Feb 2011 02:36:57 -0000	1.18
@@ -207,7 +207,10 @@
     }
     $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>!



More information about the freeside-commits mailing list