Revision e569098e
Von Jan Büren vor etwa 3 Jahren hinzugefügt
SL/Helper/Inventory.pm | ||
---|---|---|
305 | 305 |
my $strict_wh = $::instance_conf->get_produce_assembly_same_warehouse ? $bin->warehouse : undef; |
306 | 306 |
if ($params{auto_allocate}) { |
307 | 307 |
Carp::croak("produce_assembly: can't have both allocations and auto_allocate") if $params{allocations}; |
308 |
$allocations = [ allocate_for_assembly(part => $part, qty => $qty, warehouse => $strict_wh) ]; |
|
308 |
$allocations = [ allocate_for_assembly(part => $part, qty => $qty, warehouse => $strict_wh, chargenumber => $params{chargenumber}) ];
|
|
309 | 309 |
} else { |
310 | 310 |
Carp::croak("produce_assembly: need allocations or auto_allocate to produce something") if !$params{allocations}; |
311 | 311 |
$allocations = $params{allocations}; |
Auch abrufbar als: Unified diff
Erzeugnis fertigen: Chargennummer für Einzelteile priorisieren
Erzeugnis-Chargennummer == Bestandteil-Chargennummer