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} }) {
$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},
$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;
$form->{no_services} = 1;
$form->{no_assemblies} = 1;
- $form->{stockable} = 1;
my $parts = Common->retrieve_parts(\%myconfig, $form, 'description', 1);
$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;