From 1d82881814e08839628257891b64a45a4ca51f1e Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 Nov 2015 10:55:33 +0200 Subject: [PATCH] Removing payments of archived/deleted invoices from the dashboard --- app/Http/Controllers/DashboardController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 6dbc8ef61053..d15c6d0da7b0 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -110,6 +110,7 @@ class DashboardController extends BaseController ->leftJoin('invoices', 'invoices.id', '=', 'payments.invoice_id') ->where('payments.account_id', '=', Auth::user()->account_id) ->where('payments.deleted_at', '=', null) + ->where('invoices.deleted_at', '=', null) ->where('clients.deleted_at', '=', null) ->where('contacts.deleted_at', '=', null) ->where('contacts.is_primary', '=', true)