use strict;
use SL::DB::MetaSetup::Inventory;
+use SL::DB::Manager::Inventory;
__PACKAGE__->meta->initialize;
-# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
-__PACKAGE__->meta->make_manager_class;
-
# part accessor is badly named
sub part {
goto &parts;
--- /dev/null
+package SL::DB::Manager::Inventory;
+
+use strict;
+
+use SL::DB::Helper::Manager;
+use base qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Filtered;
+use SL::DB::Helper::Paginated;
+use SL::DB::Helper::Sorted;
+
+sub object_class { 'SL::DB::Inventory' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+ return (
+ default => [ 'itime', 1 ],
+ columns => {
+ SIMPLE => 'ALL',
+ });
+}
+
+sub default_objects_per_page {
+ 20;
+}
+
+1;