[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.175, 1.176
Ivan,,,
ivan at wavetail.420.am
Tue Feb 7 23:09:47 PST 2012
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv16022/FS/FS/ClientAPI
Modified Files:
MyAccount.pm
Log Message:
fix credit cards showing up as PO#s, RT#16291
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -w -d -r1.175 -r1.176
--- MyAccount.pm 14 Jan 2012 06:15:26 -0000 1.175
+++ MyAccount.pm 8 Feb 2012 07:09:45 -0000 1.176
@@ -585,7 +585,7 @@
$p->{'payinfo1'} =~ /^([\dx]+)$/
or return { 'error' => "illegal account number ". $p->{'payinfo1'} };
my $payinfo1 = $1;
- $p->{'payinfo2'} =~ /^([\dx\.]+)$/ # . turned on by -require-bank-branch?
+ $p->{'payinfo2'} =~ /^([\dx\.]+)$/ # . turned on by echeck-country CA ?
or return { 'error' => "illegal ABA/routing number ". $p->{'payinfo2'} };
my $payinfo2 = $1;
$payinfo = $payinfo1. '@'. $payinfo2;
@@ -790,7 +790,7 @@
$payinfo = $p->{'payinfo'};
- #more intelligent mathing will be needed here if you change
+ #more intelligent matching will be needed here if you change
#card_masking_method and don't remove existing paymasks
$payinfo = $cust_main->payinfo
if $cust_main->paymask eq $payinfo;
@@ -912,7 +912,7 @@
if ( $validate->{'save'} ) {
my $new = new FS::cust_main { $cust_main->hash };
- if ($validate->{'payby'} eq 'CARD' || $validate->{'payby'} eq 'DCRD') {
+ if ($payby eq 'CARD' || $payby eq 'DCRD') {
$new->set( $_ => $validate->{$_} )
foreach qw( payname paystart_month paystart_year payissue payip
address1 address2 city state zip country );
More information about the freeside-commits
mailing list