[freeside-commits] freeside/FS/FS cust_pay_void.pm,1.12,1.13

Ivan,,, ivan at wavetail.420.am
Thu Oct 21 23:37:11 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv5715

Modified Files:
	cust_pay_void.pm 
Log Message:
deal with multiply-voided payments

Index: cust_pay_void.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pay_void.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- cust_pay_void.pm	22 Oct 2010 06:14:24 -0000	1.12
+++ cust_pay_void.pm	22 Oct 2010 06:37:09 -0000	1.13
@@ -253,7 +253,7 @@
 sub _upgrade_data {  # class method
   my ($class, %opts) = @_;
 
-  my $sql = "SELECT usernum FROM access_user WHERE username = ( SELECT history_user FROM h_cust_pay_void WHERE paynum = ? AND history_action = 'insert' ) ";
+  my $sql = "SELECT usernum FROM access_user WHERE username = ( SELECT history_user FROM h_cust_pay_void WHERE paynum = ? AND history_action = 'insert' ORDER BY history_date LIMIT 1 ) ";
   my $sth = dbh->prepare($sql) or die dbh->errstr;
 
   foreach my $cust_pay_void (qsearch('cust_pay_void', {'void_usernum' => ''})) {



More information about the freeside-commits mailing list