From 92cf059102d8ca8acdf9767484ac3cf7d1d72ba4 Mon Sep 17 00:00:00 2001 From: Sander Dorigo Date: Mon, 21 Jul 2014 14:48:24 +0200 Subject: [PATCH] Fixed bug in account chart [skip ci] --- app/models/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') ); }