projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b5e5c
)
Inventur-Modul: DateTime-Methode heißt subtract, nicht substract
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Fri, 30 Oct 2020 15:06:02 +0000
(16:06 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Fri, 30 Oct 2020 15:10:01 +0000
(16:10 +0100)
SL/Controller/Inventory.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Inventory.pm
b/SL/Controller/Inventory.pm
index
30ff321
..
1324638
100644
(file)
--- 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->sub
s
tract(years => 1);
+ $cutoff->subtract(years => 1);
}
return $cutoff;
}