From d0407b1766f0f5e31a3f5c0bf0851ba723426a00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 23 Jul 2021 19:17:10 +0200 Subject: [PATCH] hotfix: Erzeugnis fertigen braucht in der alten Version keine Dienstleistung --- SL/Helper/Inventory.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Helper/Inventory.pm b/SL/Helper/Inventory.pm index e249bf58d..c6830af9f 100644 --- a/SL/Helper/Inventory.pm +++ b/SL/Helper/Inventory.pm @@ -222,6 +222,7 @@ sub allocate_for_assembly { my %parts_to_allocate; for my $assembly ($part->assemblies) { + next if $assembly->part->type eq 'service' && 1; $parts_to_allocate{ $assembly->part->id } //= 0; $parts_to_allocate{ $assembly->part->id } += $assembly->qty * $qty; } -- 2.20.1