[freeside-commits] freeside/httemplate/misc download-batch.cgi, 1.15, 1.16

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Jan 9 16:41:39 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv3778/httemplate/misc

Modified Files:
	download-batch.cgi 
Log Message:
permit batch redownloads

Index: download-batch.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/download-batch.cgi,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- download-batch.cgi	1 Dec 2006 06:31:55 -0000	1.15
+++ download-batch.cgi	10 Jan 2007 00:41:36 -0000	1.16
@@ -24,6 +24,10 @@
 %my $dbh = dbh;
 %
 %my $pay_batch = qsearchs('pay_batch', {'batchnum'=>$batchnum, 'status'=>'O'} );
+%unless ($pay_batch) {
+%  $pay_batch = qsearchs('pay_batch', {'batchnum'=>$batchnum, 'status'=>'I'} )
+%    if $FS::CurrentUser::CurrentUser->access_right('Reprocess batches');
+%}
 %die "No pending batch. \n" unless $pay_batch;
 %
 %my %batchhash = $pay_batch->hash;



More information about the freeside-commits mailing list