From 57b1be14294d4dcd8cc578528ad8a29a294260d5 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 4 Jan 2011 15:51:19 +0100 Subject: [PATCH] =?utf8?q?Storno=20von=20Dialogbuchungen:=20acc=5Ftrans=5F?= =?utf8?q?id=20nicht=20doppelt=20einf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/GL.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/GL.pm b/SL/GL.pm index 320be1e7e..01b71dbda 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -707,7 +707,7 @@ sub storno { my $rowref = selectall_hashref_query($form, $dbh, $query, $id); for my $row (@$rowref) { - delete @$row{qw(itime mtime)}; + delete @$row{qw(itime mtime acc_trans_id)}; $query = sprintf 'INSERT INTO acc_trans (%s) VALUES (%s)', join(', ', keys %$row), join(', ', map '?', values %$row); $row->{trans_id} = $new_id; $row->{amount} *= -1; -- 2.20.1