Revision 6798d5bb
Von Jan Büren vor 12 Monaten hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
674 | 674 |
die unless ref($self->warehouse) eq 'SL::DB::Warehouse'; |
675 | 675 |
|
676 | 676 |
if ( $self->warehouse->id and @{$self->warehouse->bins} ) { |
677 |
$self->bin($self->warehouse->bins_sorted->[0]); |
|
677 |
$self->bin($self->warehouse->bins_sorted_naturally->[0]);
|
|
678 | 678 |
$self->js |
679 | 679 |
->html('#bin', $self->build_bin_select) |
680 | 680 |
->focus('#part_bin_id'); |
... | ... | |
1202 | 1202 |
} |
1203 | 1203 |
|
1204 | 1204 |
sub build_bin_select { |
1205 |
select_tag('part.bin_id', [ @{ $_[0]->warehouse->bins_sorted } ], |
|
1205 |
select_tag('part.bin_id', [ @{ $_[0]->warehouse->bins_sorted_naturally } ],
|
|
1206 | 1206 |
title_key => 'description', |
1207 | 1207 |
default => $_[0]->bin->id, |
1208 | 1208 |
); |
Auch abrufbar als: Unified diff
Lagerplätze natürlich nach Beschreibung in Listen sortieren
Für alle Lagerfunktionen und für den Standardlagerplatz der Waren