X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/88e6dce2c094fa468e4397030d2f14289a265e62..b68c23bf6e98cf678081dcaa84a8593b10aaff29:/SL/AP.pm 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;