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:
0e04eb1
)
Stornierte Rechnnung muss auf storno = true haben
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 14 Jun 2007 16:04:43 +0000
(16:04 +0000)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 14 Jun 2007 16:04:43 +0000
(16:04 +0000)
SL/GL.pm
patch
|
blob
|
history
diff --git
a/SL/GL.pm
b/SL/GL.pm
index
6cdcee9
..
8d68624
100644
(file)
--- a/
SL/GL.pm
+++ b/
SL/GL.pm
@@
-662,6
+662,9
@@
sub storno {
$query = sprintf 'INSERT INTO gl (%s) VALUES (%s)', join(', ', keys %$storno_row), join(', ', map '?', values %$storno_row);
do_query($form, $dbh, $query, (values %$storno_row));
+ $query = qq|UPDATE gl SET storno = 't' WHERE id = ?|;
+ do_query($form, $dbh, $query, $id);
+
# now copy acc_trans entries
$query = qq|SELECT * FROM acc_trans WHERE trans_id = ?|;
my $rowref = selectall_hashref_query($form, $dbh, $query, $id);