1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add quote API filter

This commit is contained in:
Hillel Coren 2018-05-18 09:41:55 +03:00
parent e59a547d3d
commit f1e50caa17

View File

@ -77,6 +77,10 @@ class InvoiceApiController extends BaseAPIController
$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);
}