From 3ca78c165eb22113110ab1f1cc716ac7e18cdbdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 10 Mar 2015 11:53:59 +0100 Subject: [PATCH] =?utf8?q?Auslagern=20=C3=BCber=20Rechnung:=20Dienstleistu?= =?utf8?q?ngen=20wirklich=20ignorieren,=20falls=20konfiguriert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/IS.pm b/SL/IS.pm index a1542850f..30570c059 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1316,7 +1316,7 @@ 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 +1353,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; + return 'ignore service'; } # test negative qty -- 2.20.1