From f4fe824640bd460cc7e98dead251d43a8ec4e393 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 9 Jul 2013 14:46:55 +0200 Subject: [PATCH] =?utf8?q?Pflichtenhefte:=20Standard-Artikel=20f=C3=BCr=20?= =?utf8?q?Auftragswandlung=20in=20Mandantenkonfiguration=20eingeben=20k?= =?utf8?q?=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/ClientConfig.pm | 5 ++++- templates/webpages/client_config/_features.html | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/SL/Controller/ClientConfig.pm b/SL/Controller/ClientConfig.pm index 9292ee441..e056927fc 100644 --- a/SL/Controller/ClientConfig.pm +++ b/SL/Controller/ClientConfig.pm @@ -10,6 +10,7 @@ use SL::DB::Chart; use SL::DB::Currency; use SL::DB::Default; use SL::DB::Language; +use SL::DB::Part; use SL::DB::Unit; use SL::Helper::Flash; use SL::Locale::String qw(t8); @@ -18,7 +19,7 @@ use SL::Template; __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 posting_options payment_options accounting_options inventory_options profit_options accounts balance_startdate_method_options) ], + 'scalar --get_set_init' => [ qw(defaults all_warehouses all_weightunits all_languages all_currencies all_templates all_parts posting_options payment_options accounting_options inventory_options profit_options accounts balance_startdate_method_options) ], ); sub action_edit { @@ -139,6 +140,7 @@ 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_parts { SL::DB::Manager::Part->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 } } @@ -218,6 +220,7 @@ sub edit_form { $self->render('client_config/form', title => t8('Client Configuration'), make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description }, make_templates_value => sub { 'templates/' . $_[0] }, + make_part_title => sub { $_[0]->partnumber . ' ' . $_[0]->description }, ); } diff --git a/templates/webpages/client_config/_features.html b/templates/webpages/client_config/_features.html index 86ab2485e..2576ebc06 100644 --- a/templates/webpages/client_config/_features.html +++ b/templates/webpages/client_config/_features.html @@ -56,5 +56,13 @@ [% LxERP.t8('Automatic deletion of leading, trailing and excessive (repetitive) spaces in part description and part notes. Affects the CSV import as well.') %] + + [% LxERP.t8("Requirement Specs") %] + + + [% LxERP.t8('Default article for converting into quotations and orders') %] + [% L.select_tag('defaults.requirement_spec_section_order_part_id', SELF.all_parts, default=SELF.defaults.requirement_spec_section_order_part_id, with_empty=1, title_sub=\make_part_title) %] + [% LxERP.t8('When converting a requirement spec into a quotation or an oder each section gets converted into a line position in the new record. This is the article used by default for this conversion.') %] + -- 2.20.1