[freeside-commits] freeside/FS/FS cust_main.pm,1.555,1.556
Ivan,,,
ivan at wavetail.420.am
Wed Sep 29 18:11:11 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26917
Modified Files:
cust_main.pm
Log Message:
improve signup date recovery, especially in the edit case
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.555
retrieving revision 1.556
diff -u -w -d -r1.555 -r1.556
--- cust_main.pm 29 Sep 2010 18:39:04 -0000 1.555
+++ cust_main.pm 30 Sep 2010 01:11:08 -0000 1.556
@@ -4611,7 +4611,7 @@
foreach my $sql (
'UPDATE h_cust_main SET paycvv = NULL WHERE paycvv IS NOT NULL',
- 'UPDATE cust_main SET signupdate = (SELECT signupdate FROM h_cust_main WHERE h_cust_main.custnum = cust_main.custnum ORDER BY historynum ASC LIMIT 1) WHERE signupdate IS NULL',
+ 'UPDATE cust_main SET signupdate = (SELECT signupdate FROM h_cust_main WHERE signupdate IS NOT NULL AND h_cust_main.custnum = cust_main.custnum ORDER BY historynum DESC LIMIT 1) WHERE signupdate IS NULL',
) {
my $sth = dbh->prepare($sql) or die dbh->errstr;
$sth->execute or die $sth->errstr;
More information about the freeside-commits
mailing list