1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Send down all quotes and recurring invoices in invoices GET call

This commit is contained in:
David Bomba 2016-01-12 13:02:08 +11:00
parent 0febd95381
commit 3e0b6948b5

View File

@ -1,6 +1,7 @@
<?php namespace App\Http\Controllers;
use Auth;
use Illuminate\Support\Facades\Log;
use Utils;
use Response;
use Input;
@ -51,9 +52,9 @@ class InvoiceApiController extends BaseAPIController
{
$paginator = Invoice::scope();
$invoices = Invoice::scope()
->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) {