From: Jan Büren Date: Thu, 21 Jan 2021 07:11:20 +0000 (+0100) Subject: Standardlagerplätze in Part sortiert anzeigen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~514 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d7ca155122347833221c0f2ee084adc751a88f8b;p=kivitendo-erp.git Standardlagerplätze in Part sortiert anzeigen --- diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index f589a715a..a0ff1e700 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -556,7 +556,7 @@ sub action_warehouse_changed { die unless ref($self->warehouse) eq 'SL::DB::Warehouse'; if ( $self->warehouse->id and @{$self->warehouse->bins} ) { - $self->bin($self->warehouse->bins->[0]); + $self->bin($self->warehouse->bins_sorted->[0]); $self->js ->html('#bin', $self->build_bin_select) ->focus('#part_bin_id'); @@ -889,7 +889,7 @@ sub parse_form_customerprices { } sub build_bin_select { - select_tag('part.bin_id', [ $_[0]->warehouse->bins ], + select_tag('part.bin_id', [ @{ $_[0]->warehouse->bins_sorted } ], title_key => 'description', default => $_[0]->bin->id, );