[freeside-commits] freeside/httemplate/edit/process cust_main.cgi, 1.46, 1.46.2.1

Ivan,,, ivan at wavetail.420.am
Fri Apr 8 11:10:24 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv23510

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	cust_main.cgi 
Log Message:
fix edits of customers with tokenized cards, RT#12353

Index: cust_main.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_main.cgi,v
retrieving revision 1.46
retrieving revision 1.46.2.1
diff -u -w -d -r1.46 -r1.46.2.1
--- cust_main.cgi	29 Sep 2010 00:38:08 -0000	1.46
+++ cust_main.cgi	8 Apr 2011 18:10:22 -0000	1.46.2.1
@@ -237,8 +237,14 @@
   if ($new->stateid =~ /^xxx/) {
     $new->stateid($old->stateid);
   }
-  if ($new->payby =~ /^(CARD|DCRD)$/ && $new->payinfo =~ /xx/) {
+  if ( $new->payby =~ /^(CARD|DCRD)$/
+       && (    $new->payinfo =~ /xx/
+            || $new->payinfo =~ /^\s*N\/A\s+\(tokenized\)\s*$/
+          )
+     )
+  {
     $new->payinfo($old->payinfo);
+
   } elsif ($new->payby =~ /^(CHEK|DCHK)$/ && $new->payinfo =~ /xx/) {
     #fix for #3085 "edit of customer's routing code only surprisingly causes
     #nothing to happen...



More information about the freeside-commits mailing list