projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03f1746
)
Storno von Dialogbuchungen: acc_trans_id nicht doppelt einfügen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 4 Jan 2011 14:51:19 +0000
(15:51 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 4 Jan 2011 14:51:19 +0000
(15:51 +0100)
SL/GL.pm
patch
|
blob
|
history
diff --git
a/SL/GL.pm
b/SL/GL.pm
index
320be1e
..
01b71db
100644
(file)
--- 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;