Make sure account has a start and end balance.

This commit is contained in:
James Cole 2016-02-08 20:40:47 +01:00
parent deb140e3bc
commit 0eb8c2b7ba

View File

@ -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;
}