From: Moritz Bunkus Date: Mon, 9 Nov 2020 13:06:26 +0000 (+0100) Subject: Einkauf/Verkauf: Sprach-Drop-Down aus Print-Optionen in Hauptbeleg verschoben X-Git-Tag: kivitendo-mebil_0.1-0~9^2~657 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=473431b1a1008e2cdcb5d49bb04227f5b0004852;p=kivitendo-erp.git Einkauf/Verkauf: Sprach-Drop-Down aus Print-Optionen in Hauptbeleg verschoben Noch nicht erledigt ist der neue Angebots-/Auftragscontroller. --- diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index b1bc8b5f9..5de295916 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -421,6 +421,7 @@ sub form_header { "business_types" => "ALL_BUSINESS_TYPES", ); $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted; + $form->{ALL_LANGUAGES} = SL::DB::Manager::Language->get_all_sorted; # Projects my @old_project_ids = uniq grep { $_ } map { $_ * 1 } ($form->{"globalproject_id"}, map { $form->{"project_id_$_"} } 1..$form->{"rowcount"}); diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index ae158c77e..0362e13ae 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -2009,9 +2009,8 @@ sub _make_record { sub setup_sales_purchase_print_options { my $print_form = Form->new(''); $print_form->{printers} = SL::DB::Manager::Printer->get_all_sorted; - $print_form->{languages} = SL::DB::Manager::Language->get_all_sorted; - $print_form->{$_} = $::form->{$_} for qw(type media language_id printer_id storno formname groupitems); + $print_form->{$_} = $::form->{$_} for qw(type media printer_id storno formname groupitems); return SL::Helper::PrintOptions->get_print_options( form => $print_form, diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index c1b61d574..e80dd3f8a 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -465,6 +465,7 @@ sub form_header { "price_factors" => "ALL_PRICE_FACTORS"); $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted; + $form->{ALL_LANGUAGES} = SL::DB::Manager::Language->get_all_sorted; # Projects my @old_project_ids = uniq grep { $_ } map { $_ * 1 } ($form->{"globalproject_id"}, map { $form->{"project_id_$_"} } 1..$form->{"rowcount"}); diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 524afc46e..fa284f0d8 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -526,6 +526,7 @@ sub form_header { $form->{ALL_PAYMENTS} = SL::DB::Manager::PaymentTerm->get_all( where => [ or => [ obsolete => 0, id => $form->{payment_id} || undef ] ]); $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted; + $form->{ALL_LANGUAGES} = SL::DB::Manager::Language->get_all_sorted; # Projects my @old_project_ids = uniq grep { $_ } map { $_ * 1 } ($form->{"globalproject_id"}, map { $form->{"project_id_$_"} } 1..$form->{"rowcount"}); diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html index 59fa98edc..1cac15be3 100644 --- a/templates/webpages/do/form_header.html +++ b/templates/webpages/do/form_header.html @@ -186,6 +186,15 @@ [%- END %] + [%- IF ALL_LANGUAGES.size %] + + [% 'Language' | $T8 %] + + [% L.select_tag('language_id', ALL_LANGUAGES, default = language_id, title_key = 'description', with_empty = 1, style = 'width: 250px' )%] + + + [%- END %] + [%- IF ALL_DEPARTMENTS.size %] [% 'Department' | $T8 %] diff --git a/templates/webpages/is/form_header.html b/templates/webpages/is/form_header.html index c0f7363b1..e30974023 100644 --- a/templates/webpages/is/form_header.html +++ b/templates/webpages/is/form_header.html @@ -136,6 +136,14 @@ [%- END %] +[%- IF ALL_LANGUAGES %] + + [% 'Language' | $T8 %] + + [% L.select_tag('language_id', ALL_LANGUAGES, default = language_id, title_key = 'description', with_empty = 1, style = 'width:250px') %] + + +[%- END %] [%- IF ALL_DEPARTMENTS %] [% 'Department' | $T8 %] diff --git a/templates/webpages/oe/form_header.html b/templates/webpages/oe/form_header.html index 9f1cc1b17..556987417 100644 --- a/templates/webpages/oe/form_header.html +++ b/templates/webpages/oe/form_header.html @@ -110,6 +110,14 @@ [% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES), default=taxzone_id, title_key='description', style='width: 250px') %] +[%- IF ALL_LANGUAGES.size %] + + [% 'Language' | $T8 %] + + [% L.select_tag('language_id', ALL_LANGUAGES, default=language_id, title_key = 'description', with_empty=1, style='width:250px') %] + + +[%- END %] [%- IF ALL_DEPARTMENTS.size %] [% 'Department' | $T8 %]