WH: Employee::current statt manuell
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 16 Jan 2019 11:41:11 +0000 (12:41 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 15 Sep 2021 11:17:34 +0000 (13:17 +0200)
(cherry picked from commit 975786bdc3c48380926c63e8a0b37109d144f0f2)
(cherry-pick von odyn)

SL/WH.pm

index 6afc4ff..52e174f 100644 (file)
--- 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));