mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:34:30 -04:00
Support filtering API invoices by status
This commit is contained in:
parent
1d8bd29323
commit
cfddcc940a
@ -68,6 +68,11 @@ class InvoiceApiController extends BaseAPIController
|
|||||||
$invoices->whereInvoiceNumber($invoiceNumber);
|
$invoices->whereInvoiceNumber($invoiceNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fllter by status
|
||||||
|
if ($statusId = Input::get('status_id')) {
|
||||||
|
$invoices->where('invoice_status_id', '>=', $statusId);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->listResponse($invoices);
|
return $this->listResponse($invoices);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user