projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0546ad4
)
hotfix: Erzeugnis fertigen braucht in der alten Version keine Dienstleistung
author
Jan Büren
<jan@kivitendo.de>
Fri, 23 Jul 2021 17:17:10 +0000
(19:17 +0200)
committer
Jan Büren
<jan@kivitendo.de>
Fri, 23 Jul 2021 17:17:10 +0000
(19:17 +0200)
SL/Helper/Inventory.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/Inventory.pm
b/SL/Helper/Inventory.pm
index
e249bf5
..
c6830af
100644
(file)
--- 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;
}