From 0eb8c2b7ba6ac014c9641c1a54aacd52a6c1363e Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 8 Feb 2016 20:40:47 +0100 Subject: [PATCH] Make sure account has a start and end balance. --- app/Helpers/Report/AccountReportHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Helpers/Report/AccountReportHelper.php b/app/Helpers/Report/AccountReportHelper.php index 5d368cfa23..6913553b8e 100644 --- a/app/Helpers/Report/AccountReportHelper.php +++ b/app/Helpers/Report/AccountReportHelper.php @@ -75,7 +75,9 @@ class AccountReportHelper implements AccountReportHelperInterface * day. */ // - $currentStart = $startSet->filter( + $account->startBalance = '0'; + $account->endBalance = '0'; + $currentStart = $startSet->filter( function (Account $entry) use ($account) { return $account->id == $entry->id; }