Quick bug fix.

This commit is contained in:
James Cole
2016-03-19 17:34:02 +01:00
parent 059764cd23
commit cf8b4e2f76

View File

@@ -354,6 +354,9 @@ class AccountRepository implements AccountRepositoryInterface
->transactionTypes([TransactionType::OPENING_BALANCE])
->orderBy('created_at', 'ASC')
->first(['transaction_journals.*']);
if(is_null($journal)) {
return new TransactionJournal;
}
return $journal;
}