From: Sven Schöling Date: Fri, 10 Feb 2012 16:53:13 +0000 (+0100) Subject: gelöschte Benutzer in oe/search ausblenden X-Git-Tag: release-2.7.0beta2~5^2~27 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7e6ad2204aead126459357fbf2291020d7638699;p=kivitendo-erp.git gelöschte Benutzer in oe/search ausblenden --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 11231515d..58f4cf5f3 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -708,16 +708,13 @@ sub search { # setup vendor / customer data $form->all_vc(\%myconfig, $form->{vc}, ($form->{vc} eq 'customer') ? "AR" : "AP"); $form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, - "employees" => "ALL_EMPLOYEES", - "salesmen" => "ALL_SALESMEN", "departments" => "ALL_DEPARTMENTS", "$form->{vc}s" => "ALL_VC"); + $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); # constants and subs for template $form->{jsscript} = 1; - $form->{employee_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} }; $form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; - $form->{salesman_labels} = $form->{employee_labels}; $form->header(); diff --git a/templates/webpages/oe/search.html b/templates/webpages/oe/search.html index 22d83b017..8f39ea208 100644 --- a/templates/webpages/oe/search.html +++ b/templates/webpages/oe/search.html @@ -54,34 +54,11 @@ [% 'Employee' | $T8 %] - - [%- INCLUDE 'generic/multibox.html' - name = 'employee_id', - style = 'width: 250px', - DATA = ALL_EMPLOYEES, - id_key = 'id', - label_sub = 'employee_labels', - limit = vclimit, - show_empty = 1, - allow_textbox = 0, - default = ' ', - -%] - + [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %] [% 'Salesman' | $T8 %] - - [%- INCLUDE 'generic/multibox.html' - name = 'salesman_id', - style = 'width: 250px', - DATA = ALL_SALESMEN, - id_key = 'id', - label_sub = 'salesman_labels', - limit = vclimit, - show_empty = 1, - allow_textbox = 0, - -%] - + [% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %] [% 'Transaction description' | $T8 %]