From: Moritz Bunkus Date: Wed, 29 Dec 2010 16:31:51 +0000 (+0100) Subject: Storno von Debitoren-/Kreditorenrechnungen: acc_trans_id nicht doppelt einfügen X-Git-Tag: release-2.6.2beta1~39 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=024d2c2912122d35cc5d5a602e8464db86a16d1a;p=kivitendo-erp.git Storno von Debitoren-/Kreditorenrechnungen: acc_trans_id nicht doppelt einfügen --- diff --git a/SL/AP.pm b/SL/AP.pm index fce222dc0..245d1abb8 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -781,7 +781,7 @@ sub storno { } for my $row (@$rowref) { - delete @$row{qw(itime mtime link)}; + delete @$row{qw(itime mtime link 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; diff --git a/SL/AR.pm b/SL/AR.pm index a2512c8aa..98a30297c 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -690,7 +690,7 @@ sub storno { } for my $row (@$rowref) { - delete @$row{qw(itime mtime link)}; + delete @$row{qw(itime mtime link 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;