From ccbd47d7a05b02889854bbad8213827fe550de8a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Fri, 31 May 2013 08:56:56 +0200 Subject: [PATCH] Standardlagerplatz als Vorauswahl beim Einlagern setzen. --- bin/mozilla/wh.pl | 4 ++-- templates/webpages/generic/select_part.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index eb12fcb45..5caee5437 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -331,7 +331,7 @@ sub transfer_stock_update_part { if (!scalar @{ $parts }) { new_item(action => "transfer_stock_update_part"); } elsif (scalar @{ $parts } == 1) { - @{$form}{qw(parts_id partnumber description ean)} = @{$parts->[0]}{qw(id partnumber description ean)}; + @{$form}{qw(parts_id partnumber description ean warehouse_id bin_id)} = @{$parts->[0]}{qw(id partnumber description ean warehouse_id bin_id)}; transfer_stock_get_partunit(); transfer_warehouse_selection(); @@ -398,7 +398,7 @@ sub transfer_stock_part_selected { my $form = $main::form; - @{$form}{qw(parts_id partnumber description ean)} = @{$part}{qw(id partnumber description ean)}; + @{$form}{qw(parts_id partnumber description ean warehouse_id bin_id)} = @{$part}{qw(id partnumber description ean warehouse_id bin_id)}; transfer_stock_get_partunit(); transfer_warehouse_selection(); diff --git a/templates/webpages/generic/select_part.html b/templates/webpages/generic/select_part.html index ddf5511c8..fe18fe664 100644 --- a/templates/webpages/generic/select_part.html +++ b/templates/webpages/generic/select_part.html @@ -39,6 +39,8 @@ + + [% HTML.escape(part.number) %] -- 2.20.1