Revision 8e54812a
Von Bernd Bleßmann vor 4 Monaten hinzugefügt
SL/DB/Manager/StockCountingItem.pm | ||
---|---|---|
7 | 7 |
|
8 | 8 |
use parent qw(SL::DB::Helper::Manager); |
9 | 9 |
|
10 |
use SL::DB::Helper::Sorted; |
|
11 |
|
|
10 | 12 |
sub object_class { 'SL::DB::StockCountingItem' } |
11 | 13 |
|
12 | 14 |
__PACKAGE__->make_manager_methods; |
13 | 15 |
|
16 |
|
|
17 |
sub _sort_spec { |
|
18 |
return ( default => [ 'counted_at', 1 ], |
|
19 |
columns => { SIMPLE => 'ALL' , |
|
20 |
counted_at => [ 'counted_at' ], |
|
21 |
employee => [ 'lower(employee.name)', 'counted_at'], |
|
22 |
part => [ 'lower(part.partnumber)', 'counted_at'], |
|
23 |
counting => [ 'lower(counting.name)', 'counted_at'], |
|
24 |
} |
|
25 |
); |
|
26 |
} |
|
27 |
|
|
14 | 28 |
1; |
Auch abrufbar als: Unified diff
S:D:M:StockCountingItem: sort_specs