[freeside-commits] freeside/FS/FS cust_main.pm,1.605,1.606
Ivan,,,
ivan at wavetail.420.am
Sun Feb 12 13:40:25 PST 2012
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv8553
Modified Files:
cust_main.pm
Log Message:
don't fix non-cc length(16) BILL payinfo back to CARD
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.605
retrieving revision 1.606
diff -u -w -d -r1.605 -r1.606
--- cust_main.pm 12 Feb 2012 21:03:16 -0000 1.605
+++ cust_main.pm 12 Feb 2012 21:40:22 -0000 1.606
@@ -5060,7 +5060,7 @@
'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',
);
# fix yyyy-m-dd formatted paydates
- if ( driver_name =~ /^mysql$/i ) {
+ if ( driver_name =~ /^mysql/i ) {
push @statements,
"UPDATE cust_main SET paydate = CONCAT( SUBSTRING(paydate FROM 1 FOR 5), '0', SUBSTRING(paydate FROM 6) ) WHERE SUBSTRING(paydate FROM 7 FOR 1) = '-'";
}
@@ -5070,8 +5070,8 @@
}
push @statements, #fix the weird BILL with a cc# in payinfo problem
- #DCRD to be safe, or CARD?
- "UPDATE cust_main SET payby = 'DCRD' WHERE payby = 'BILL' and length(payinfo) = 16";
+ #DCRD to be safe
+ "UPDATE cust_main SET payby = 'DCRD' WHERE payby = 'BILL' and length(payinfo) = 16 and payinfo ". regexp_sql. q( '^[0-9]*$' );
foreach my $sql ( @statements ) {
my $sth = dbh->prepare($sql) or die dbh->errstr;
More information about the freeside-commits
mailing list