mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Moved to high charts.
This commit is contained in:
@@ -42,9 +42,9 @@ class Account extends Elegant
|
||||
{
|
||||
$date = is_null($date) ? new \Carbon\Carbon : $date;
|
||||
|
||||
return $this->transactions()
|
||||
return floatval($this->transactions()
|
||||
->leftJoin('transaction_journals', 'transaction_journals.id', '=', 'transactions.transaction_journal_id')
|
||||
->where('transaction_journals.date', '<=', $date->format('Y-m-d'))->sum('transactions.amount');
|
||||
->where('transaction_journals.date', '<=', $date->format('Y-m-d'))->sum('transactions.amount'));
|
||||
}
|
||||
|
||||
public function transactions()
|
||||
|
Reference in New Issue
Block a user