Fixed bug in account chart [skip ci]

This commit is contained in:
Sander Dorigo 2014-07-21 14:48:24 +02:00
parent 2d77481ff5
commit 92cf059102

View File

@ -88,7 +88,7 @@ class Account extends Ardent
->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')
);
}