Revision f5c44fc1
Von Sven Schöling vor etwa 4 Jahren hinzugefügt
SL/Helper/Inventory.pm | ||
---|---|---|
224 | 224 |
my %parts_to_allocate; |
225 | 225 |
|
226 | 226 |
for my $assembly ($part->assemblies) { |
227 |
next if $assembly->part->dispotype eq 'no_stock'; |
|
228 |
|
|
229 |
my $tmpqty = $assembly->part->unit eq 'Stck' ? ceil($assembly->qty * $qty) |
|
230 |
: $assembly->qty * $qty; |
|
231 | 227 |
$parts_to_allocate{ $assembly->part->id } //= 0; |
232 |
$parts_to_allocate{ $assembly->part->id } += $tmpqty;
|
|
228 |
$parts_to_allocate{ $assembly->part->id } += $assembly->qty * $qty;
|
|
233 | 229 |
} |
234 | 230 |
|
235 | 231 |
my @allocations; |
Auch abrufbar als: Unified diff
Inventory: Stückbehandlung und dispotype no_stock entfernt