From 31d70c3482ad3aecc79ac4d69c15c35713484359 Mon Sep 17 00:00:00 2001 From: mark Date: Tue, 24 Aug 2010 02:17:22 +0000 Subject: [PATCH] premature commit --- FS/FS/pay_batch.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/FS/FS/pay_batch.pm b/FS/FS/pay_batch.pm index 9a0b235a9..0b8c9f79b 100644 --- a/FS/FS/pay_batch.pm +++ b/FS/FS/pay_batch.pm @@ -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; ''; -- 2.11.0