Inventory: typo in set employee hook
authorSven Schöling <s.schoeling@googlemail.com>
Sun, 5 Dec 2021 18:34:02 +0000 (19:34 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 14:02:19 +0000 (15:02 +0100)
SL/DB/Inventory.pm

index df78623..3dccdd5 100644 (file)
@@ -76,7 +76,7 @@ sub _before_save_set_shippingdate {
 sub _before_save_set_employee {
   my ($self, %params) = @_;
 
-  return 1 if $self->emplyee_id;
+  return 1 if $self->employee_id;
 
   $self->employee(SL::DB::Manager::Employee->current);