diff --git a/app/models/Account.php b/app/models/Account.php index 544f7f7c9f..35cc3684ce 100644 --- a/app/models/Account.php +++ b/app/models/Account.php @@ -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') ); }