From 8797da6a0a0330c63f85f2be0cb9d600c4ff7900 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 17 Aug 2017 10:38:16 +0200 Subject: [PATCH] =?utf8?q?Fixt:=20Auslagern=20=C3=BCber=20Standardlagerpla?= =?utf8?q?tz=20ohne=20Auslagern=20von=20Dienstleistungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die Prüfung, ob es sich um eine Dienstleistung handelt, wird über part_type gemacht. Andernfalls wird die auszulagernde Menge in diesem Fall bei allen Positionen auf 0 gesetzt. Zusätzlich die Prüfung auf gesetzte Menge über das Fragezeichen-Feld entfernt (ist mit ActionBar reingekommen). --- bin/mozilla/do.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index d1f112963..d4b2f9e75 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -296,7 +296,7 @@ sub setup_do_action_bar { action => [ t8('Transfer out via default'), submit => [ '#form', { action => "transfer_out_default" } ], - checks => [ @req_trans_desc, @transfer_qty ], + checks => [ @req_trans_desc ], disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, only_if => $is_customer && $::instance_conf->get_transfer_default, ], @@ -310,7 +310,7 @@ sub setup_do_action_bar { action => [ t8('Transfer in via default'), submit => [ '#form', { action => "transfer_in_default" } ], - checks => [ @req_trans_desc, @transfer_qty ], + checks => [ @req_trans_desc ], disabled => $::form->{delivered} ? t8('This record has already been delivered.') : undef, only_if => !$is_customer && $::instance_conf->get_transfer_default, ], @@ -1808,7 +1808,7 @@ sub transfer_in_out_default { # ... and do not create a hash entry in %qty_parts below (will skip check for bins for the transfer == out case) # ... and push only a empty (undef) element to @all_requests (will skip check for bin_id and warehouse_id and will not alter the row) - $qty = 0 if (!$::instance_conf->get_transfer_default_services && !defined($part_info_map{$form->{"id_$i"}}->{inventory_accno_id}) && !$part_info_map{$form->{"id_$i"}}->{assembly}); + $qty = 0 if (!$::instance_conf->get_transfer_default_services && $part_info_map{$form->{"id_$i"}}->{part_type} eq 'service'); $qty_parts{$form->{"id_$i"}} += $qty; if ($qty == 0) { delete $qty_parts{$form->{"id_$i"}} unless $qty_parts{$form->{"id_$i"}}; -- 2.20.1