From bee7eaaac98c0d80db0669c619b6f5683952b910 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 14 Jun 2007 16:04:43 +0000 Subject: [PATCH] Stornierte Rechnnung muss auf storno = true haben --- SL/GL.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SL/GL.pm b/SL/GL.pm index 6cdcee978..8d6862422 100644 --- 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); -- 2.20.1