From e569098eb6e71664857a66291b54f391df2a6847 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 27 Sep 2021 09:08:39 +0200 Subject: [PATCH] =?utf8?q?Erzeugnis=20fertigen:=20Chargennummer=20f=C3=BCr?= =?utf8?q?=20Einzelteile=20priorisieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Erzeugnis-Chargennummer == Bestandteil-Chargennummer --- SL/Helper/Inventory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Helper/Inventory.pm b/SL/Helper/Inventory.pm index da28bacfa..944a41019 100644 --- a/SL/Helper/Inventory.pm +++ b/SL/Helper/Inventory.pm @@ -305,7 +305,7 @@ sub produce_assembly { my $strict_wh = $::instance_conf->get_produce_assembly_same_warehouse ? $bin->warehouse : undef; if ($params{auto_allocate}) { Carp::croak("produce_assembly: can't have both allocations and auto_allocate") if $params{allocations}; - $allocations = [ allocate_for_assembly(part => $part, qty => $qty, warehouse => $strict_wh) ]; + $allocations = [ allocate_for_assembly(part => $part, qty => $qty, warehouse => $strict_wh, chargenumber => $params{chargenumber}) ]; } else { Carp::croak("produce_assembly: need allocations or auto_allocate to produce something") if !$params{allocations}; $allocations = $params{allocations}; -- 2.20.1