Inventory: Stückbehandlung und dispotype no_stock entfernt
authorSven Schöling <s.schoeling@googlemail.com>
Fri, 23 Oct 2020 16:21:46 +0000 (18:21 +0200)
committerSven Schöling <s.schoeling@googlemail.com>
Fri, 27 Nov 2020 15:27:45 +0000 (16:27 +0100)
SL/Helper/Inventory.pm

index 01e92ad..4d24a94 100644 (file)
@@ -224,12 +224,8 @@ sub allocate_for_assembly {
   my %parts_to_allocate;
 
   for my $assembly ($part->assemblies) {
-    next if $assembly->part->dispotype eq 'no_stock';
-
-    my $tmpqty = $assembly->part->unit eq 'Stck' ? ceil($assembly->qty * $qty)
-               : $assembly->qty * $qty;
     $parts_to_allocate{ $assembly->part->id } //= 0;
-    $parts_to_allocate{ $assembly->part->id } += $tmpqty;
+    $parts_to_allocate{ $assembly->part->id } += $assembly->qty * $qty;
   }
 
   my @allocations;