From 88257876b74ea5941ce72e9ae9ce6faf15fea888 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Thu, 6 Aug 2015 18:52:48 +0200 Subject: [PATCH] =?utf8?q?Mandantenkonfiguration=20f=C3=BCr=20Auftragsnumm?= =?utf8?q?ern=20mit=20Projekten=20speichern?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/ClientConfig.pm | 3 +++ templates/webpages/client_config/_features.html | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index ded1a33fb..521242da5 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) ], ); @@ -143,6 +144,8 @@ sub init_defaults { SL::DB::Default->get sub init_all_warehouses { SL::DB::Manager::Warehouse->get_all_sorted } 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_project_types { SL::DB::Manager::ProjectType->get_all_sorted } +sub init_all_project_statuses { SL::DB::Manager::ProjectStatus->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) }; diff --git a/templates/webpages/client_config/_features.html b/templates/webpages/client_config/_features.html index de9a9544c..fd1c3778c 100644 --- a/templates/webpages/client_config/_features.html +++ b/templates/webpages/client_config/_features.html @@ -150,5 +150,19 @@ + [% LxERP.t8("Projects") %] + + + [% LxERP.t8('Always save orders with a projectnumber (create new projects)') %] + [% L.yes_no_tag('defaults.order_always_project', SELF.defaults.order_always_project) %] + + + [% LxERP.t8('Project type') %] + [% L.select_tag('defaults.project_type_id', SELF.all_project_types, default=SELF.defaults.project_type_id, title_key='description', with_empty=1, style="width: 200px") %] + + [% LxERP.t8('Project Status') %] + [% L.select_tag('defaults.project_status_id', SELF.all_project_statuses, default=SELF.defaults.project_status_id, title_key='description', with_empty=1, style="width: 200px") %] + + -- 2.20.1