mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	improved request and balance range date handling
This commit is contained in:
		| @@ -48,10 +48,11 @@ class AutocompleteRequest extends FormRequest | ||||
|         // remove 'initial balance' from allowed types. its internal
 | ||||
|         $array = array_diff($array, [AccountTypeEnum::INITIAL_BALANCE->value, AccountTypeEnum::RECONCILIATION->value]); | ||||
| 
 | ||||
|         $date = $this->getCarbonDate('date') ?? today(config('app.timezone')); | ||||
|         return [ | ||||
|             'types' => $array, | ||||
|             'query' => $this->convertString('query'), | ||||
|             'date'  => $this->getCarbonDate('date'), | ||||
|             'date'  => $date->endOfDay(), | ||||
|         ]; | ||||
|     } | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user