[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.48, 1.464.2.49
Ivan,,,
ivan at wavetail.420.am
Wed Sep 29 18:11:22 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv26918
Modified Files:
Tag: FREESIDE_1_9_BRANCH
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.464.2.48
retrieving revision 1.464.2.49
diff -u -w -d -r1.464.2.48 -r1.464.2.49
--- cust_main.pm 29 Sep 2010 18:41:36 -0000 1.464.2.48
+++ cust_main.pm 30 Sep 2010 01:11:20 -0000 1.464.2.49
@@ -9805,7 +9805,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