Merge branch 'master' of github.com:hillelcoren/invoice-ninja

This commit is contained in:
Hillel Coren 2016-01-12 08:57:28 +02:00
commit 5dbdec43f3

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) {