Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c2e1e2cf

Von Bernd Bleßmann vor 10 Monaten hinzugefügt

  • ID c2e1e2cfcf3751b6b2683cd7b64ce38d80e5f3df
  • Vorgänger c1a83d34
  • Nachfolger 68cfa9b9

S:H:Inventory:produce_assembly: Diensleistungen bei eigener Allokierung: …

Einstellung in Mandantenkonfig berücksichtigen.

Unterschiede anzeigen:

SL/Helper/Inventory.pm
328 328

  
329 329
  my $allocations = $params{allocations};
330 330
  my $strict_wh = $::instance_conf->get_produce_assembly_same_warehouse ? $bin->warehouse : undef;
331
  my $consume_service = $::instance_conf->get_produce_assembly_transfer_service;
332

  
331 333
  if ($params{auto_allocate}) {
332 334
    Carp::croak("produce_assembly: can't have both allocations and auto_allocate") if $params{allocations};
333 335
    $allocations = [ allocate_for_assembly(part => $part, qty => $qty, warehouse => $strict_wh, chargenumber => $params{chargenumber}) ];
......
354 356
  if (!$params{no_check_allocations} && !$params{auto_allocate}) {
355 357
    my %allocations_by_part = map { $_->parts_id  => $_->qty } @$allocations;
356 358
    for my $assembly ($part->assemblies) {
359
      next if $assembly->part->type eq 'service' && !$consume_service;
357 360
      $allocations_by_part{ $assembly->parts_id } -= $assembly->qty * $qty;
358 361
    }
359 362

  

Auch abrufbar als: Unified diff