From: Sven Schöling Date: Fri, 23 Oct 2020 16:21:46 +0000 (+0200) Subject: Inventory: Stückbehandlung und dispotype no_stock entfernt X-Git-Tag: kivitendo-mebil_0.1-0~9^2~593 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f5c44fc1803f8ee3b03ea27bdc657b5f4bf5ee9a;p=kivitendo-erp.git Inventory: Stückbehandlung und dispotype no_stock entfernt --- diff --git a/SL/Helper/Inventory.pm b/SL/Helper/Inventory.pm index 01e92adbe..4d24a949f 100644 --- a/SL/Helper/Inventory.pm +++ b/SL/Helper/Inventory.pm @@ -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;