From: mark Date: Tue, 24 Aug 2010 02:17:22 +0000 (+0000) Subject: premature commit X-Git-Tag: TORRUS_1_0_9~360 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=31d70c3482ad3aecc79ac4d69c15c35713484359 premature commit --- 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; '';