From: Moritz Bunkus Date: Tue, 4 Jan 2011 14:51:19 +0000 (+0100) Subject: Storno von Dialogbuchungen: acc_trans_id nicht doppelt einfügen X-Git-Tag: release-2.6.2beta1~3 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/57b1be14294d4dcd8cc578528ad8a29a294260d5?ds=sidebyside;hp=-c Storno von Dialogbuchungen: acc_trans_id nicht doppelt einfügen --- 57b1be14294d4dcd8cc578528ad8a29a294260d5 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;