X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FInventory.pm;h=13246387265d7afcc1a5084cd2aa2bd196f07105;hb=59274d46487423806bdc4c76ea405c57d9e45c0a;hp=30ff321a0b30bb6f1dd6a9385a0dd728b74ed75f;hpb=9d74608bbb538ffa4cab9381ced378e28df23862;p=kivitendo-erp.git 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; }