[freeside-commits] freeside/FS/FS cust_main.pm, 1.568.2.10, 1.568.2.11
Ivan,,,
ivan at wavetail.420.am
Wed Jul 20 14:16:25 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv28420/FS/FS
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cust_main.pm
Log Message:
better error message for signup duplicate cards, allow editing of those customer records, RT#13744
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.568.2.10
retrieving revision 1.568.2.11
diff -u -w -d -r1.568.2.10 -r1.568.2.11
--- cust_main.pm 15 Jul 2011 21:10:19 -0000 1.568.2.10
+++ cust_main.pm 20 Jul 2011 21:16:22 -0000 1.568.2.11
@@ -1440,6 +1440,11 @@
&& $self->payby =~ /^(CARD|DCRD)$/
&& ( $old->payinfo eq $self->payinfo || $old->paymask eq $self->paymask );
+ local($ignore_banned_card) = 1
+ if ( $old->payby =~ /^(CARD|DCRD)$/ && $self->payby =~ /^(CARD|DCRD)$/
+ || $old->payby =~ /^(CHEK|DCHK)$/ && $self->payby =~ /^(CHEK|DCHK)$/ )
+ && ( $old->payinfo eq $self->payinfo || $old->paymask eq $self->paymask );
+
local $SIG{HUP} = 'IGNORE';
local $SIG{INT} = 'IGNORE';
local $SIG{QUIT} = 'IGNORE';
@@ -1835,7 +1840,11 @@
if ( $ban ) {
if ( $ban->bantype eq 'warn' ) {
#or others depending on value of $ban->reason ?
- return '_duplicate_card' unless $self->override_ban_warn;
+ return '_duplicate_card'.
+ ': disabled from'. time2str('%a %h %o at %r', $ban->_date).
+ ' until '. time2str('%a %h %o at %r', $ban->_end_date).
+ ' (ban# '. $ban->bannum. ')'
+ unless $self->override_ban_warn;
} else {
return 'Banned credit card: banned on '.
time2str('%a %h %o at %r', $ban->_date).
More information about the freeside-commits
mailing list