Revision 0ec8dac3
Von Bernd Bleßmann vor 4 Monaten hinzugefügt
SL/Controller/StockCountingReconciliation.pm | ||
---|---|---|
69 | 69 |
my ($self) = @_; |
70 | 70 |
|
71 | 71 |
my $counting = SL::DB::StockCounting->new(id => $::form->{counting_id})->load; |
72 |
# todo: sanity checks |
|
73 |
# return if $counting->is_reconciliated; |
|
74 |
# return if scalar(@{$counting->items}) == 0; |
|
75 | 72 |
|
76 |
# my $counting_items = $counting->items; |
|
73 |
# Sanity checks. |
|
74 |
if ($counting->is_reconciliated) { |
|
75 |
flash_later('error', t8('Stock counting is already reconciliated')); |
|
76 |
return $self->redirect_to($::form->{callback}); |
|
77 |
} |
|
78 |
if (scalar(@{$counting->items}) == 0) { |
|
79 |
flash_later('error', t8('Stock counting does not contain any counted items')); |
|
80 |
return $self->redirect_to($::form->{callback}); |
|
81 |
} |
|
82 |
|
|
77 | 83 |
my $grouped_counting_items = $self->group_items_by_part_and_bin(\@{$counting->items}); |
78 | 84 |
$self->get_stocked($grouped_counting_items); |
79 | 85 |
$self->get_inbetweens($grouped_counting_items); |
Auch abrufbar als: Unified diff
Zwischeninventur-Abgleich: bestimmte Situationen beim Abgleich abfangen …
- Zählung schon abgeglichen
- Zählung enthält keine Zähl-Einträge