X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FAP.pm;h=c2ed2b5e3db7e1191fae2f525623676c160c481b;hb=0a0de6a62c138e156275169601087754b4469097;hp=aaf2d5e6e4293ed5b25c393b72e0119ea1478659;hpb=09fe7f33a735ecc3f4a3112ad716f674983b00cc;p=kivitendo-erp.git diff --git a/SL/AP.pm b/SL/AP.pm index aaf2d5e6e..c2ed2b5e3 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -46,7 +46,7 @@ sub post_transaction { $main::lxdebug->enter_sub(); my ($self, $myconfig, $form, $provided_dbh, $payments_only) = @_; - + my $rc = 0; # return code auf false setzen # connect to database my $dbh = $provided_dbh ? $provided_dbh : $form->dbconnect_noauto($myconfig); @@ -356,12 +356,13 @@ sub post_transaction { IO->set_datepaid(table => 'ap', id => $form->{id}, dbh => $dbh); - my $rc = 1; if (!$provided_dbh) { $dbh->commit(); $dbh->disconnect(); } + $rc = 1; # Den return-code auf true setzen, aber nur falls beim commit alles i.O. ist + $main::lxdebug->leave_sub(); return $rc;