]> wagnertech.de Git - mfinanz.git/blobdiff - SL/OE.pm
Angebots-Position mit Auftragsposition verknüpft (orderitems -> orderitems) II
[mfinanz.git] / SL / OE.pm
index 9d6f8496207e924c084da41ef04b62b6f652ee02..d8c66f5efaab8b513dcbdc7f1bfbfec53d08e056 100644 (file)
--- a/SL/OE.pm
+++ b/SL/OE.pm
@@ -578,7 +578,7 @@ SQL
                                   name_prefix  => 'ic_',
                                   name_postfix => "_$i",
                                   dbh          => $dbh);
-      # link quotation items with order items
+      # link quotation items with order items and delete entry (just one link)
       if ($form->{"converted_from_quotation_orderitems_id_$i"}) {
         RecordLinks->create_links('dbh'        => $dbh,
                                   'mode'       => 'ids',
@@ -587,6 +587,7 @@ SQL
                                   'to_table'   => 'orderitems',
                                   'to_id'      => $orderitems_id,
         );
+        delete $form->{"converted_from_quotation_orderitems_id_$i"};
       }
     }
   }