X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FClientConfig.pm;h=d002f427ae740b9761d36b31805dd2861b89049e;hb=eed856940a560915032452c19d98b88b1337f8bc;hp=ded1a33fb9d3d5ca231a180528bf52562a8dbfef;hpb=ea1f139071a3ba20d0defdf9f5bf01c2127ca18d;p=kivitendo-erp.git diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index ded1a33fb..d002f427a 100644 --- a/SL/Controller/ClientConfig.pm +++ b/SL/Controller/ClientConfig.pm @@ -21,6 +21,7 @@ __PACKAGE__->run_before('check_auth'); use Rose::Object::MakeMethods::Generic ( 'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates all_price_sources h_unit_name + all_project_statuses all_project_types posting_options payment_options accounting_options inventory_options profit_options balance_startdate_method_options) ], ); @@ -145,7 +146,9 @@ sub init_all_languages { SL::DB::Manager::Language->get_all_sorted sub init_all_currencies { SL::DB::Manager::Currency->get_all_sorted } sub init_all_weightunits { my $unit = SL::DB::Manager::Unit->find_by(name => 'kg'); $unit ? $unit->convertible_units : [] } sub init_all_templates { +{ SL::Template->available_templates } } -sub init_h_unit_name { first { SL::DB::Manager::Unit->find_by(name => $_) } qw(Std h Stunde) }; +sub init_h_unit_name { first { SL::DB::Manager::Unit->find_by(name => $_) } qw(Std h Stunde) } +sub init_all_project_types { SL::DB::Manager::ProjectType->get_all_sorted } +sub init_all_project_statuses { SL::DB::Manager::ProjectStatus->get_all_sorted } sub init_posting_options { [ { title => t8("never"), value => 0 },