premature commit
authormark <mark>
Tue, 24 Aug 2010 02:17:22 +0000 (02:17 +0000)
committermark <mark>
Tue, 24 Aug 2010 02:17:22 +0000 (02:17 +0000)
FS/FS/pay_batch.pm

index 9a0b235..0b8c9f7 100644 (file)
@@ -356,10 +356,6 @@ sub import_results {
       return "error updating status of paybatchnum $hash{'paybatchnum'}: $error\n";
     }
 
-    # purge CVV when the batch is processed
-    $new_cust_pay_batch->cust_main->remove_cvv
-      if ( $payby eq 'CARD' or $payby eq 'DCRD' );
-
     if ( $new_cust_pay_batch->status =~ /Approved/i ) {
 
       my $cust_pay = new FS::cust_pay ( {
@@ -406,11 +402,11 @@ sub import_results {
           return $error;
        }
 
-      } # foreach $cust_event
+      }
 
-    } # if(status eq 'Approved')
+    }
 
-  } # foreach(@all_values)
+  }
   
   $dbh->commit or die $dbh->errstr if $oldAutoCommit;
   '';