From: Moritz Bunkus Date: Tue, 9 Jul 2013 12:46:55 +0000 (+0200) Subject: Pflichtenhefte: Standard-Artikel für Auftragswandlung in Mandantenkonfiguration einge... X-Git-Tag: release-3.2.0beta~467^2~133 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f4fe824640bd460cc7e98dead251d43a8ec4e393;p=kivitendo-erp.git Pflichtenhefte: Standard-Artikel für Auftragswandlung in Mandantenkonfiguration eingeben können --- 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.') %] +