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();
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();
<td>
<input type="hidden" name="new_id_[% loop.count %]" value="[% HTML.escape(part.id) %]">
<input type="hidden" name="new_number_[% loop.count %]" value="[% HTML.escape(part.number) %]">
+ <input type="hidden" name="new_warehouse_id_[% loop.count %]" value="[% HTML.escape(part.warehouse_id) %]">
+ <input type="hidden" name="new_bin_id_[% loop.count %]" value="[% HTML.escape(part.bin_id) %]">
[% HTML.escape(part.number) %]
</td>