[freeside-commits] freeside/FS/FS cust_main.pm,1.602,1.603

Ivan,,, ivan at wavetail.420.am
Tue Feb 7 23:09:47 PST 2012


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

Modified Files:
	cust_main.pm 
Log Message:
fix credit cards showing up as PO#s, RT#16291

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.602
retrieving revision 1.603
diff -u -w -d -r1.602 -r1.603
--- cust_main.pm	14 Jan 2012 07:05:15 -0000	1.602
+++ cust_main.pm	8 Feb 2012 07:09:44 -0000	1.603
@@ -5063,6 +5063,10 @@
     "UPDATE cust_main SET paydate = SUBSTRING(paydate FROM 1 FOR 5) || '0' || SUBSTRING(paydate FROM 6) WHERE SUBSTRING(paydate FROM 7 FOR 1) = '-'";
   }
 
+  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";
+
   foreach my $sql ( @statements ) {
     my $sth = dbh->prepare($sql) or die dbh->errstr;
     $sth->execute or die $sth->errstr;



More information about the freeside-commits mailing list