[freeside-commits] freeside/httemplate/misc/process pay_batch-approve.cgi, 1.1.2.2, 1.1.2.3
Mark Wells
mark at wavetail.420.am
Tue Feb 15 15:52:46 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc/process
In directory wavetail.420.am:/tmp/cvs-serv11757/httemplate/misc/process
Modified Files:
Tag: FREESIDE_2_1_BRANCH
pay_batch-approve.cgi
Log Message:
batch payment revocation, RT#10545
Index: pay_batch-approve.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/process/pay_batch-approve.cgi,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- pay_batch-approve.cgi 24 Dec 2010 00:41:26 -0000 1.1.2.2
+++ pay_batch-approve.cgi 15 Feb 2011 23:52:44 -0000 1.1.2.3
@@ -7,10 +7,11 @@
unless $FS::CurrentUser::CurrentUser->access_right('Process batches');
my $batchnum = $cgi->param('batchnum');
-# make a record in the paybatch of who did this
-my $paybatch = 'manual-'.$FS::CurrentUser::CurrentUser->username.
- '-' . time2str('%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
+my $paybatch = $batchnum;
+my $usernum = $FS::CurrentUser::CurrentUser->usernum;
my $pay_batch = qsearchs('pay_batch', { 'batchnum' => $batchnum })
or die "batchnum '$batchnum' not found";
-my $error = $pay_batch->manual_approve('paybatch' => $paybatch);
+my $error = $pay_batch->manual_approve(
+ 'paybatch' => $paybatch, 'usernum' => $usernum
+);
</%init>
More information about the freeside-commits
mailing list