Revision a00ec2d1
Von Bernd Bleßmann vor 3 Monaten hinzugefügt
SL/Controller/StockCounting.pm | ||
---|---|---|
47 | 47 |
push @errors, t8 ('Part not found') if scalar(@$parts) == 0; |
48 | 48 |
push @errors, t8 ('Part is ambiguous') if scalar(@$parts) > 1; |
49 | 49 |
|
50 |
$self->stock_counting_item->part($parts->[0]) if !@errors; |
|
50 |
return $self->render('stock_counting/count', errors => \@errors) if @errors; |
|
51 |
|
|
52 |
$self->stock_counting_item->part($parts->[0]); |
|
51 | 53 |
|
52 | 54 |
my @validation_errors = $self->stock_counting_item->validate; |
53 | 55 |
push @errors, @validation_errors if @validation_errors; |
54 | 56 |
|
55 |
$::form->error(join "\n", @errors) if @errors;
|
|
57 |
return $self->render('stock_counting/count', errors => \@errors) if @errors;
|
|
56 | 58 |
|
57 | 59 |
$self->stock_counting_item->qty(1); |
58 | 60 |
$self->stock_counting_item->save; |
59 | 61 |
|
60 |
$self->render('stock_counting/count',); |
|
62 |
$self->render('stock_counting/count', successfully_counted => 1);
|
|
61 | 63 |
} |
62 | 64 |
|
63 | 65 |
sub init_is_developer { |
Auch abrufbar als: Unified diff
Zwischeninventur: Modale Dialoge für Feedback