mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-22 20:16:22 +00:00 
			
		
		
		
	Go back 3 years max.
This commit is contained in:
		| @@ -118,6 +118,10 @@ class ShowController extends Controller | ||||
|         $chartUrl         = route('chart.account.period', [$account->id, $start->format('Y-m-d'), $end->format('Y-m-d')]); | ||||
|         $firstTransaction = $this->repository->oldestJournalDate($account) ?? $start; | ||||
| 
 | ||||
|         // go back max 3 years.
 | ||||
|         $threeYearsAgo = $start->subYears(3); | ||||
|         $firstTransaction = $firstTransaction->lt($threeYearsAgo) ? $threeYearsAgo : $firstTransaction; | ||||
| 
 | ||||
|         Log::debug('Start period overview'); | ||||
|         $timer            = Timer::getInstance(); | ||||
|         $timer->start('period-overview'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user