From 9582c372695343091bf9a66cb7650f5b3e1dbe25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 30 Oct 2020 16:06:02 +0100 Subject: [PATCH] =?utf8?q?Inventur-Modul:=20DateTime-Methode=20hei=C3=9Ft?= =?utf8?q?=20subtract,=20nicht=20substract?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Inventory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1