Revision 7dd981c4
Von Bernd Bleßmann vor 4 Monaten hinzugefügt
SL/DB/StockCounting.pm | ||
---|---|---|
5 | 5 |
|
6 | 6 |
use strict; |
7 | 7 |
|
8 |
use List::Util qw(none); |
|
8 |
use List::Util qw(any min none);
|
|
9 | 9 |
|
10 | 10 |
use SL::DB::MetaSetup::StockCounting; |
11 | 11 |
use SL::DB::Manager::StockCounting; |
... | ... | |
43 | 43 |
return @errors; |
44 | 44 |
} |
45 | 45 |
|
46 |
sub is_reconciliated { |
|
47 |
any { !!$_->correction_inventory_id } @{$_[0]->items}; |
|
48 |
} |
|
49 |
|
|
50 |
sub start_time_of_counting { |
|
51 |
min map { $_->counted_at } @{$_[0]->items}; |
|
52 |
} |
|
53 |
|
|
46 | 54 |
1; |
Auch abrufbar als: Unified diff
S:D:StockCounting: Methoden für Abgleich-Status und Zähl-Startzeit