mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-11-03 20:55:05 +00:00 
			
		
		
		
	Add missing indexes.
This commit is contained in:
		@@ -215,12 +215,15 @@ class IndexController extends Controller
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // per period:
 | 
					        // per period:
 | 
				
			||||||
        $division  = [
 | 
					        $division  = [
 | 
				
			||||||
            '1Y' => '1',
 | 
					            '1Y'  => '1',
 | 
				
			||||||
            '6M' => '2',
 | 
					            '6M'  => '2',
 | 
				
			||||||
            '3M' => '4',
 | 
					            '3M'  => '4',
 | 
				
			||||||
            '1M' => '12',
 | 
					            '1M'  => '12',
 | 
				
			||||||
            '1W' => '52.16',
 | 
					            '1W'  => '52.16',
 | 
				
			||||||
            '1D' => '365.24',
 | 
					            '1D'  => '365.24',
 | 
				
			||||||
 | 
					            'YTD' => '1',
 | 
				
			||||||
 | 
					            'QTD' => '4',
 | 
				
			||||||
 | 
					            'MTD' => '12',
 | 
				
			||||||
        ];
 | 
					        ];
 | 
				
			||||||
        $perPeriod = bcdiv($yearAmount, $division[$range]);
 | 
					        $perPeriod = bcdiv($yearAmount, $division[$range]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user