From eabc3f080524efe84b13e1f0561a34fe194b74b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 11 Mar 2015 14:09:34 +0100 Subject: [PATCH] Fehlerbehandlung (transfer inventory bei invoice) eindeutig machen --- SL/IS.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/IS.pm b/SL/IS.pm index 30570c059..cb7f21371 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1316,7 +1316,6 @@ sub transfer_out { $form->{"id_$i"}, $form->{"qty_$i"}, $form->{"unit_$i"}); - next if ($err eq 'ignore service'); if (!@{ $err } && $wh_id && $bin_id) { push @transfers, { 'parts_id' => $form->{"id_$i"}, @@ -1353,7 +1352,7 @@ sub _determine_wh_and_bin { # ignore service if they are not configured to be transfered if ($part->is_service && !$conf->get_transfer_default_services) { $::lxdebug->leave_sub(2); - return 'ignore service'; + return (\@errors); } # test negative qty -- 2.20.1