[freeside-commits] freeside/FS/FS/cust_main Billing_Realtime.pm, 1.20, 1.21
Ivan,,,
ivan at wavetail.420.am
Thu May 5 16:21:24 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/cust_main
In directory wavetail.420.am:/tmp/cvs-serv22685
Modified Files:
Billing_Realtime.pm
Log Message:
fix double insert of overpayments, RT#12655
Index: Billing_Realtime.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main/Billing_Realtime.pm,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -d -r1.20 -r1.21
--- Billing_Realtime.pm 14 Apr 2011 21:29:05 -0000 1.20
+++ Billing_Realtime.pm 5 May 2011 23:21:22 -0000 1.21
@@ -849,6 +849,7 @@
my $error = $cust_pay->insert($options{'manual'} ? ( 'manual' => 1 ) : () );
if ( $error ) {
+ $dbh->rollback or die $dbh->errstr if $oldAutoCommit;
$cust_pay->invnum(''); #try again with no specific invnum
$cust_pay->paynum('');
my $error2 = $cust_pay->insert( $options{'manual'} ?
More information about the freeside-commits
mailing list