From: Jan Büren Date: Fri, 23 Jul 2021 17:17:10 +0000 (+0200) Subject: hotfix: Erzeugnis fertigen braucht in der alten Version keine Dienstleistung X-Git-Tag: kivitendo-mebil_0.1-0~9^2~31 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d0407b1766f0f5e31a3f5c0bf0851ba723426a00;p=kivitendo-erp.git hotfix: Erzeugnis fertigen braucht in der alten Version keine Dienstleistung --- 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; }