diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index 08948f17f79b..5daa8827883a 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -105,6 +105,7 @@ class DashboardController extends BaseController ->where('contacts.deleted_at', '=', null) ->where('invoices.is_recurring', '=', false) //->where('invoices.is_quote', '=', false) + ->where('invoices.quote_invoice_id', '=', null) ->where('invoices.balance', '>', 0) ->where('invoices.is_deleted', '=', false) ->where('invoices.deleted_at', '=', null) @@ -129,6 +130,7 @@ class DashboardController extends BaseController ->where('invoices.deleted_at', '=', null) ->where('invoices.is_recurring', '=', false) //->where('invoices.is_quote', '=', false) + ->where('invoices.quote_invoice_id', '=', null) ->where('invoices.balance', '>', 0) ->where('invoices.is_deleted', '=', false) ->where('contacts.is_primary', '=', true)