Revision 44655653
Von Sven Schöling vor etwa 11 Jahren hinzugefügt
SL/Controller/Inventory.pm | ||
---|---|---|
123 | 123 |
} |
124 | 124 |
|
125 | 125 |
sub init_warehouses { |
126 |
SL::DB::Manager::Warehouse->get_all; |
|
126 |
SL::DB::Manager::Warehouse->get_all(query => [ or => [ invalid => 0, invalid => undef ]]);
|
|
127 | 127 |
} |
128 | 128 |
|
129 | 129 |
sub init_units { |
... | ... | |
150 | 150 |
sub sanitize_target { |
151 | 151 |
my ($self) = @_; |
152 | 152 |
|
153 |
$self->warehouse(SL::DB::Manager::Warehouse->get_first) if !$self->warehouse || !$self->warehouse->id;
|
|
154 |
$self->bin ($self->warehouse->bins->[0]) if !$self->bin || !$self->bin->id;
|
|
153 |
$self->warehouse($self->warehouses->[0]) if !$self->warehouse || !$self->warehouse->id;
|
|
154 |
$self->bin ($self->warehouse->bins->[0]) if !$self->bin || !$self->bin->id; |
|
155 | 155 |
} |
156 | 156 |
|
157 | 157 |
sub load_part_from_form { |
Auch abrufbar als: Unified diff
Ungültige Lager beim Einlagern ausblenden.
behebt #2377