mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Debug log.
This commit is contained in:
parent
16b95ea78a
commit
72ebfdc20e
@ -6,6 +6,7 @@ use Carbon\Carbon;
|
||||
use Config;
|
||||
use FireflyIII\Models\Account;
|
||||
use Illuminate\Support\Collection;
|
||||
use Log;
|
||||
use Preferences;
|
||||
use Steam;
|
||||
|
||||
@ -67,6 +68,7 @@ class ChartJsAccountChartGenerator implements AccountChartGenerator
|
||||
$start = isset($startBalances[$id]) ? $startBalances[$id] : 0;
|
||||
$end = isset($endBalances[$id]) ? $endBalances[$id] : 0;
|
||||
$diff = $end - $start;
|
||||
Log::debug($account->name ' spent ' . $diff);
|
||||
if ($diff > 0) {
|
||||
$data['labels'][] = $account->name;
|
||||
$data['datasets'][0]['data'][] = $diff;
|
||||
|
Loading…
Reference in New Issue
Block a user