From: Bernd Bleßmann Date: Fri, 30 Oct 2020 15:06:02 +0000 (+0100) Subject: Inventur-Modul: DateTime-Methode heißt subtract, nicht substract X-Git-Tag: kivitendo-mebil_0.1-0~9^2~670 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9582c372695343091bf9a66cb7650f5b3e1dbe25;p=kivitendo-erp.git Inventur-Modul: DateTime-Methode heißt subtract, nicht substract --- diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index 30ff321a0..132463872 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -704,7 +704,7 @@ sub init_stocktaking_cutoff_date { my $now = DateTime->now_local; my $cutoff = DateTime->new(year => $now->year, month => 12, day => 31); if ($now->month < 1) { - $cutoff->substract(years => 1); + $cutoff->subtract(years => 1); } return $cutoff; }