Merge pull request #7045 from firefly-iii/add-missing-indexes

Add missing indexes.
This commit is contained in:
James Cole
2023-02-17 19:42:35 +01:00
committed by GitHub

View File

@@ -215,12 +215,15 @@ class IndexController extends Controller
// per period:
$division = [
'1Y' => '1',
'6M' => '2',
'3M' => '4',
'1M' => '12',
'1W' => '52.16',
'1D' => '365.24',
'1Y' => '1',
'6M' => '2',
'3M' => '4',
'1M' => '12',
'1W' => '52.16',
'1D' => '365.24',
'YTD' => '1',
'QTD' => '4',
'MTD' => '12',
];
$perPeriod = bcdiv($yearAmount, $division[$range]);