From: Bernd Bleßmann Date: Fri, 18 Sep 2015 10:37:11 +0000 (+0200) Subject: Auftrags-Controller: Verkäufer: copy/paste-Fehler behoben und eigene Liste. X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bf46061c5ae831038315d77ae8be55bf712b2c87;p=kivitendo-erp.git Auftrags-Controller: Verkäufer: copy/paste-Fehler behoben und eigene Liste. --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index f82ecf5e8..e3f45a8df 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -431,6 +431,9 @@ sub _pre_render { $self->{all_employees} = SL::DB::Manager::Employee->get_all(where => [ or => [ id => $self->order->employee_id, deleted => 0 ] ], sort_by => 'name'); + $self->{all_salesmen} = SL::DB::Manager::Employee->get_all(where => [ or => [ id => $self->order->salesman_id, + deleted => 0 ] ], + sort_by => 'name'); $self->{all_projects} = SL::DB::Manager::Project->get_all(where => [ or => [ id => $self->order->globalproject_id, active => 1 ] ], sort_by => 'projectnumber'); diff --git a/templates/webpages/order/tabs/basic_data.html b/templates/webpages/order/tabs/basic_data.html index 11d456a26..6a89ae9cb 100644 --- a/templates/webpages/order/tabs/basic_data.html +++ b/templates/webpages/order/tabs/basic_data.html @@ -79,8 +79,8 @@ [% IF SELF.cv == 'customer' %] [% 'Salesman' | $T8 %] - [% L.select_tag('order.employee_id', - SELF.all_employees, + [% L.select_tag('order.salesman_id', + SELF.all_salesmen, default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id), title_key='safe_name') %]