From: Jan Büren Date: Thu, 7 May 2020 07:55:11 +0000 (+0200) Subject: Kreditorenbeleg-Storno: Buchungsdatum richtig setzen X-Git-Tag: release-3.5.6.1~217 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=23ceae1d2fa34369f9a621dbc6e11730ce9fd328;p=kivitendo-erp.git Kreditorenbeleg-Storno: Buchungsdatum richtig setzen Aufgefallen durch den Zeitstempel selftest --- diff --git a/SL/AP.pm b/SL/AP.pm index 79b1fa802..060b55a7c 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -893,7 +893,7 @@ sub _storno { $storno_row->{netamount} *= -1; $storno_row->{paid} = $storno_row->{amount}; - delete @$storno_row{qw(itime mtime)}; + delete @$storno_row{qw(itime mtime gldate)}; $query = sprintf 'INSERT INTO ap (%s) VALUES (%s)', join(', ', keys %$storno_row), join(', ', map '?', values %$storno_row); do_query($form, $dbh, $query, (values %$storno_row)); @@ -913,7 +913,7 @@ sub _storno { } for my $row (@$rowref) { - delete @$row{qw(itime mtime link acc_trans_id)}; + delete @$row{qw(itime mtime link acc_trans_id gldate)}; $query = sprintf 'INSERT INTO acc_trans (%s) VALUES (%s)', join(', ', keys %$row), join(', ', map '?', values %$row); $row->{trans_id} = $new_id; $row->{amount} *= -1;