mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 12:28:46 +00:00
Default value for when session is empty.
This commit is contained in:
@@ -580,8 +580,8 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
|
||||
->orderBy('date', 'DESC');
|
||||
|
||||
if ($range == 'session') {
|
||||
$query->before(\Session::get('end'));
|
||||
$query->after(\Session::get('start'));
|
||||
$query->before(\Session::get('end', \Carbon\Carbon::now()->startOfMonth()));
|
||||
$query->after(\Session::get('start', \Carbon\Carbon::now()->startOfMonth()));
|
||||
}
|
||||
$count = $query->count();
|
||||
$set = $query->take($limit)->offset($offset)->get(['transaction_journals.*']);
|
||||
|
||||
Reference in New Issue
Block a user