X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/287581dbfa5b41dc0aa2b826877a3e630ff6512b..df6b50af595e2a83232d1e1323a33b061217760b:/SL/Controller/Order.pm diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index ec28ad950..a367a56a5 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1282,7 +1282,7 @@ sub setup_order_from_cv { $order->intnotes($order->customervendor->notes); if ($order->is_sales) { - $order->salesman_id($order->customer->salesman_id); + $order->salesman_id($order->customer->salesman_id || SL::DB::Manager::Employee->current->id); $order->taxincluded(defined($order->customer->taxincluded_checked) ? $order->customer->taxincluded_checked : $::myconfig{taxincluded_checked});