summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-14 21:29:05 +0000
committerivan <ivan>2011-04-14 21:29:05 +0000
commitf2cefba60adbf732299acda09d52024748665eef (patch)
tree396f77237c6e422e188d443bfea94a6ebc964d99
parent5ef2b1e1ea0d4a0b7ca2a2687ac9e8b68f2d0e67 (diff)
fix error on second insert of CC payment, RT#12465
-rw-r--r--FS/FS/cust_main/Billing_Realtime.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm
index 0ecf5498f..bee1e0311 100644
--- a/FS/FS/cust_main/Billing_Realtime.pm
+++ b/FS/FS/cust_main/Billing_Realtime.pm
@@ -850,6 +850,7 @@ sub _realtime_bop_result {
if ( $error ) {
$cust_pay->invnum(''); #try again with no specific invnum
+ $cust_pay->paynum('');
my $error2 = $cust_pay->insert( $options{'manual'} ?
( 'manual' => 1 ) : ()
);