X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_credit.pm;h=026b92e84431c3f8f0936bfcbe5e011454b0cd31;hb=d18a2abec5a0323c26fbc5704fb1a2675eaea352;hp=8ec255b95e77056540e9a7409382c7cc472e10a1;hpb=87227cd405166484ca7b791b2bd3c8829ce8d969;p=freeside.git diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 8ec255b95..026b92e84 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -106,6 +106,8 @@ sub insert { return "error inserting $self: $error"; } + $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;