X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/090de47c1a3aaf08f0d825b83926695616fc7ace..ab96e204a2beec2302b1850df50f45a6e67a13c4:/SL/GL.pm diff --git a/SL/GL.pm b/SL/GL.pm index 6cdcee978..8d6862422 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -662,6 +662,9 @@ sub storno { $query = sprintf 'INSERT INTO gl (%s) VALUES (%s)', join(', ', keys %$storno_row), join(', ', map '?', values %$storno_row); do_query($form, $dbh, $query, (values %$storno_row)); + $query = qq|UPDATE gl SET storno = 't' WHERE id = ?|; + do_query($form, $dbh, $query, $id); + # now copy acc_trans entries $query = qq|SELECT * FROM acc_trans WHERE trans_id = ?|; my $rowref = selectall_hashref_query($form, $dbh, $query, $id);