diff options
author | ivan <ivan> | 2012-02-08 07:09:45 +0000 |
---|---|---|
committer | ivan <ivan> | 2012-02-08 07:09:45 +0000 |
commit | a98f19c50a42530058ffdf052f6e6352aa1e5572 (patch) | |
tree | 029dc0a2da0c42078c538d4c95a8ab5d6a65587b /FS/FS/cust_main.pm | |
parent | 7fbe88a91e80c40c70f3e666ce1965586544c181 (diff) |
fix credit cards showing up as PO#s, RT#16291
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r-- | FS/FS/cust_main.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index da408246d..5fd0cb617 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -5063,6 +5063,10 @@ sub _upgrade_data { #class method "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; |