Bugfix zu 1289 Gutschriften zu Rechnungen haben in der Tat Lagerbewegungen (in der...
authorJan Büren <jan@lx-office-hosting.de>
Thu, 4 Mar 2010 08:51:02 +0000 (09:51 +0100)
committerJan Büren <jan@lx-office-hosting.de>
Thu, 4 Mar 2010 08:51:02 +0000 (09:51 +0100)
SL/IS.pm

index a176b4d..6bf6aaf 100644 (file)
--- a/SL/IS.pm
+++ b/SL/IS.pm
@@ -1017,13 +1017,6 @@ sub post_invoice {
                 conv_i($form->{"id"}));
   do_query($form, $dbh, $query, @values);
 
-  if($form->{"formname"} eq "credit_note") {
-    for my $i (1 .. $form->{rowcount}) {
-      $query = qq|UPDATE parts SET onhand = onhand - ? WHERE id = ?|;
-      @values = (conv_i($form->{"qty_$i"}), conv_i($form->{"id_$i"}));
-      do_query($form, $dbh, $query, @values);
-    }
-  }
 
   if ($form->{storno}) {
     $query =