From f5c44fc1803f8ee3b03ea27bdc657b5f4bf5ee9a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Oct 2020 18:21:46 +0200 Subject: [PATCH] =?utf8?q?Inventory:=20St=C3=BCckbehandlung=20und=20dispot?= =?utf8?q?ype=20no=5Fstock=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Helper/Inventory.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; -- 2.20.1