From: Sven Schöling Date: Wed, 16 Jan 2019 11:41:11 +0000 (+0100) Subject: WH: Employee::current statt manuell X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~353 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=00b74acf8783d30c5add1d381cd46b70031fa4bb;p=kivitendo-erp.git WH: Employee::current statt manuell (cherry picked from commit 975786bdc3c48380926c63e8a0b37109d144f0f2) (cherry-pick von odyn) --- diff --git a/SL/WH.pm b/SL/WH.pm index 6afc4ff31..52e174ff0 100644 --- a/SL/WH.pm +++ b/SL/WH.pm @@ -61,7 +61,7 @@ sub transfer { require SL::DB::Part; require SL::DB::Employee; - my $employee = SL::DB::Manager::Employee->find_by(login => $::myconfig{login}); + my $employee = SL::DB::Manager::Employee->current; my ($now) = selectrow_query($::form, $::form->get_standard_dbh, qq|SELECT current_date|); my @directions = (undef, qw(out in transfer));