X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fwh.pl;h=a853c8a21df6fe176c8d78b9415408bc382c346b;hb=787248feb4b2ea860d35574f35c2c020070bd407;hp=19f9d989304dc0727bf74a8fe0ac926c489a1a0a;hpb=5d154bd1325cd3bafbb2382ee42f5c2b9c3d4b78;p=kivitendo-erp.git diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index 19f9d9893..a853c8a21 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -78,7 +78,7 @@ sub transfer_warehouse_selection { show_no_warehouses_error() if (!scalar @{ $form->{WAREHOUSES} }); - my $units = AM->retrieve_units(\%myconfig, $form, 'dimension'); + my $units = AM->retrieve_units(\%myconfig, $form); $form->{UNITS} = AM->unit_select_data($units, $form->{unit}, 0, $form->{partunit}); if (scalar @{ $form->{WAREHOUSES} }) { @@ -158,7 +158,7 @@ sub transfer_or_removal_prepare_contents { $form->show_generic_error($locale->text("The selected warehouse is empty.")) if (0 == scalar(@contents)); - my $all_units = AM->retrieve_units(\%myconfig, $form, 'dimension'); + my $all_units = AM->retrieve_units(\%myconfig, $form); foreach (@contents) { $_->{qty} = $form->format_amount_units('amount' => $_->{qty}, @@ -201,7 +201,7 @@ sub transfer_parts { $form->{sort} = 'bindescription'; my @contents = WH->get_warehouse_report("warehouse_id" => $form->{warehouse_id}); - my $all_units = AM->retrieve_units(\%myconfig, $form, 'dimension'); + my $all_units = AM->retrieve_units(\%myconfig, $form); my @transfers; @@ -285,7 +285,6 @@ sub transfer_stock_update_part { $form->{no_services} = 1; $form->{no_assemblies} = 1; - $form->{stockable} = 1; my $parts = Common->retrieve_parts(\%myconfig, $form, 'description', 1); @@ -403,7 +402,7 @@ sub remove_parts { $form->{sort} = 'bindescription'; my @contents = WH->get_warehouse_report("warehouse_id" => $form->{warehouse_id}); - my $all_units = AM->retrieve_units(\%myconfig, $form, 'dimension'); + my $all_units = AM->retrieve_units(\%myconfig, $form); my @transfers;