Ignore deleted transactions. [skip ci]

This commit is contained in:
James Cole 2016-11-20 19:03:08 +01:00
parent 72ca1c20c7
commit 4b3c31a11a
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -317,6 +317,7 @@ class AccountTasker implements AccountTaskerInterface
->where('transaction_journals.date', '<=', $end->format('Y-m-d'))
->where('transaction_journals.user_id', $this->user->id)
->whereNull('transactions.deleted_at')
->whereNull('other_side.deleted_at')
->whereNull('transaction_journals.deleted_at')
->whereIn('transactions.account_id', $accounts['accounts'])
->where('other_side.amount', '=', DB::raw('transactions.amount * -1'))