Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f5c44fc1

Von Sven Schöling vor mehr als 3 Jahren hinzugefügt

  • ID f5c44fc1803f8ee3b03ea27bdc657b5f4bf5ee9a
  • Vorgänger bb12dc4d
  • Nachfolger a910619e

Inventory: Stückbehandlung und dispotype no_stock entfernt

Unterschiede anzeigen:

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