1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add quote API filter

This commit is contained in:
Hillel Coren 2018-05-18 09:41:55 +03:00
parent e9e1514b61
commit 9fa05a7e5a

View File

@ -77,6 +77,10 @@ class InvoiceApiController extends BaseAPIController
$invoices->where('is_recurring', '=', request()->is_recurring); $invoices->where('is_recurring', '=', request()->is_recurring);
} }
if (request()->has('invoice_type_id')) {
$invoices->where('invoice_type_id', '=', request()->invoice_type_id);
}
return $this->listResponse($invoices); return $this->listResponse($invoices);
} }