Revision d7ca1551
Von Jan Büren vor etwa 4 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
556 | 556 |
die unless ref($self->warehouse) eq 'SL::DB::Warehouse'; |
557 | 557 |
|
558 | 558 |
if ( $self->warehouse->id and @{$self->warehouse->bins} ) { |
559 |
$self->bin($self->warehouse->bins->[0]); |
|
559 |
$self->bin($self->warehouse->bins_sorted->[0]);
|
|
560 | 560 |
$self->js |
561 | 561 |
->html('#bin', $self->build_bin_select) |
562 | 562 |
->focus('#part_bin_id'); |
... | ... | |
889 | 889 |
} |
890 | 890 |
|
891 | 891 |
sub build_bin_select { |
892 |
select_tag('part.bin_id', [ $_[0]->warehouse->bins ],
|
|
892 |
select_tag('part.bin_id', [ @{ $_[0]->warehouse->bins_sorted } ],
|
|
893 | 893 |
title_key => 'description', |
894 | 894 |
default => $_[0]->bin->id, |
895 | 895 |
); |
Auch abrufbar als: Unified diff
Standardlagerplätze in Part sortiert anzeigen