[freeside-commits] freeside/httemplate/search cust_pay_batch.cgi, 1.14.4.3, 1.14.4.4

Mark Wells mark at wavetail.420.am
Fri Feb 11 18:37:07 PST 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	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.14.4.3
retrieving revision 1.14.4.4
diff -u -w -d -r1.14.4.3 -r1.14.4.4
--- cust_pay_batch.cgi	31 Jan 2011 20:28:39 -0000	1.14.4.3
+++ cust_pay_batch.cgi	12 Feb 2011 02:37:05 -0000	1.14.4.4
@@ -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