Merge dashboard fix

This commit is contained in:
Hillel Coren 2016-11-27 17:00:29 +02:00
parent 54a1594bb3
commit 682ce02995

View File

@ -195,6 +195,7 @@ class DashboardRepository
->where('payments.account_id', '=', $accountId)
->where('clients.is_deleted', '=', false)
->where('invoices.is_deleted', '=', false)
->where('payments.is_deleted', '=', false)
->whereNotIn('payments.payment_status_id', [PAYMENT_STATUS_VOIDED, PAYMENT_STATUS_FAILED]);
if (!$viewAll){