From: G. Richardson Date: Sun, 7 Aug 2016 20:42:20 +0000 (+0200) Subject: Manager für PriceFactor mit sort_spec X-Git-Tag: release-3.5.4~1900 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0701c7ef6828c8ab64e3381d4b69bf8d9ac1d870;p=kivitendo-erp.git Manager für PriceFactor mit sort_spec --- diff --git a/SL/DB/Manager/PriceFactor.pm b/SL/DB/Manager/PriceFactor.pm new file mode 100644 index 000000000..84030c8ce --- /dev/null +++ b/SL/DB/Manager/PriceFactor.pm @@ -0,0 +1,20 @@ +package SL::DB::Manager::PriceFactor; + +use strict; + +use SL::DB::Helper::Manager; +use base qw(SL::DB::Helper::Manager); + +use SL::DB::Helper::Sorted; + +sub object_class { 'SL::DB::PriceFactor' } + +__PACKAGE__->make_manager_methods; + +sub _sort_spec { + return ( default => [ 'sortkey', 1 ], + columns => { SIMPLE => 'ALL' }); +} + +1; + diff --git a/SL/DB/PriceFactor.pm b/SL/DB/PriceFactor.pm index 591a97d07..af8b4ef2a 100644 --- a/SL/DB/PriceFactor.pm +++ b/SL/DB/PriceFactor.pm @@ -3,12 +3,11 @@ package SL::DB::PriceFactor; use strict; use SL::DB::MetaSetup::PriceFactor; +use SL::DB::Manager::PriceFactor; use SL::DB::Helper::ActsAsList; __PACKAGE__->meta->initialize; -__PACKAGE__->meta->make_manager_class; - 1; __END__