mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 13:16:31 +00:00
Go to end of month for #11191
This commit is contained in:
@@ -157,6 +157,14 @@ class General extends AbstractExtension
|
||||
|
||||
/** @var Carbon $date */
|
||||
$date = now();
|
||||
|
||||
// get the date from the current session. If it's in the future, keep `now()`.
|
||||
/** @var Carbon $session */
|
||||
$session = clone session('end', today(config('app.timezone'))->endOfMonth());
|
||||
if($session->lt($date)) {
|
||||
$date = $session->copy();
|
||||
$date->endOfDay();
|
||||
}
|
||||
Log::debug(sprintf('twig balance: Call finalAccountBalance with date/time "%s"', $date->toIso8601String()));
|
||||
|
||||
// 2025-10-08 replace finalAccountBalance with accountsBalancesOptimized.
|
||||
|
||||
Reference in New Issue
Block a user