Merge branch 'master' of git@lx-office.linet-services.de:lx-office-erp
[kivitendo-erp.git] / SL / GL.pm
index def0dc8..01b71db 100644 (file)
--- a/SL/GL.pm
+++ b/SL/GL.pm
@@ -268,9 +268,6 @@ sub all_transactions {
   }
 
   if ($form->{accno}) {
-    exit;
-    # Diese Abfrage hatte schon 2005 keinen Sinn mehr, jedenfalls
-    # nicht über FiBu -> Berichte (keine Eingabefeld für Suchkriterium vorhanden)
     $glwhere .= " AND c.accno = '$form->{accno}'";
     $arwhere .= " AND c.accno = '$form->{accno}'";
     $apwhere .= " AND c.accno = '$form->{accno}'";
@@ -710,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;