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:
bb12dc4
)
Inventory: Stückbehandlung und dispotype no_stock entfernt
author
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 23 Oct 2020 16:21:46 +0000
(18:21 +0200)
committer
Sven Schöling
<s.schoeling@googlemail.com>
Fri, 27 Nov 2020 15:27:45 +0000
(16:27 +0100)
SL/Helper/Inventory.pm
patch
|
blob
|
history
diff --git
a/SL/Helper/Inventory.pm
b/SL/Helper/Inventory.pm
index
01e92ad
..
4d24a94
100644
(file)
--- 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 } += $
tmp
qty;
+ $parts_to_allocate{ $assembly->part->id } += $
assembly->qty * $
qty;
}
my @allocations;