prevent unsuspension errors from causing payment or credit transactions from finishing
[freeside.git] / FS / FS / cust_pay.pm
index d901c78..1ceb599 100644 (file)
@@ -150,6 +150,8 @@ sub insert {
     }
   }
 
+  $dbh->commit or die $dbh->errstr if $oldAutoCommit;
+
   #false laziness w/ cust_credit::insert
   if ( $unsuspendauto && $old_balance && $cust_main->balance <= 0 ) {
     my @errors = $cust_main->unsuspend;