mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Add certainty to chart.
This commit is contained in:
parent
aae2ab2693
commit
32a036b076
@ -52,9 +52,11 @@ class GoogleChartController extends Controller
|
|||||||
$start = Session::get('start', Carbon::now()->startOfMonth());
|
$start = Session::get('start', Carbon::now()->startOfMonth());
|
||||||
$end = Session::get('end', Carbon::now()->endOfMonth());
|
$end = Session::get('end', Carbon::now()->endOfMonth());
|
||||||
$current = clone $start;
|
$current = clone $start;
|
||||||
|
$today = new Carbon;
|
||||||
|
|
||||||
while ($end >= $current) {
|
while ($end >= $current) {
|
||||||
$chart->addRow(clone $current, Steam::balance($account, $current), false);
|
$certain = $current > $today;
|
||||||
|
$chart->addRow(clone $current, Steam::balance($account, $current), $certain);
|
||||||
$current->addDay();
|
$current->addDay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user