From 3e0b6948b538cd3e5fc38b1bd6652db7e47b2cf5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 12 Jan 2016 13:02:08 +1100 Subject: [PATCH] Send down all quotes and recurring invoices in invoices GET call --- app/Http/Controllers/InvoiceApiController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/InvoiceApiController.php b/app/Http/Controllers/InvoiceApiController.php index 052853c8d822..0fa9efcfd5ee 100644 --- a/app/Http/Controllers/InvoiceApiController.php +++ b/app/Http/Controllers/InvoiceApiController.php @@ -1,6 +1,7 @@ with(array_merge(['invoice_items'], $this->getIncluded())) - ->where('invoices.is_quote', '=', false) - ->where('invoices.is_recurring', '=', false); + ->with(array_merge(['invoice_items'], $this->getIncluded())); + // ->where('invoices.is_quote', '=', false) + // ->where('invoices.is_recurring', '=', false); if ($clientPublicId = Input::get('client_id')) { $filter = function($query) use ($clientPublicId) {