From: Sven Schöling Date: Mon, 13 Feb 2012 10:52:44 +0000 (+0100) Subject: gelöschte Benutzer in dunning/search ausblenden. X-Git-Tag: release-2.7.0beta2~5^2~24 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6bb79765f21140440e188e5968cfe413dbf14c95;p=kivitendo-erp.git gelöschte Benutzer in dunning/search ausblenden. --- diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 4b6210ba4..07b1000ad 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -301,8 +301,8 @@ sub search { $main::auth->assert('dunning_edit'); $form->get_lists("customers" => "ALL_CUSTOMERS", - "departments" => "ALL_DEPARTMENTS", - "salesmen" => "ALL_SALESMEN"); + "departments" => "ALL_DEPARTMENTS"); + $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); DN->get_config(\%myconfig, \%$form); @@ -313,7 +313,6 @@ sub search { $form->{jsscript} = 1; $form->{title} = $locale->text('Dunnings'); $form->{fokus} = "search.customer"; - $form->{salesman_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} }; $form->header(); diff --git a/templates/webpages/dunning/search.html b/templates/webpages/dunning/search.html index 6611df216..c95829c58 100644 --- a/templates/webpages/dunning/search.html +++ b/templates/webpages/dunning/search.html @@ -1,5 +1,7 @@ [%- USE T8 %] -[% USE HTML %] +[%- USE HTML %] +[%- USE L %] + @@ -95,18 +97,7 @@ [% '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') %]