mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Merge pull request #631 from turbo124/master
Include all invoices (including trashed) in GET invoices API Call
This commit is contained in:
commit
05ac060f1c
@ -49,8 +49,8 @@ class InvoiceApiController extends BaseAPIController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$paginator = Invoice::scope();
|
||||
$invoices = Invoice::scope()
|
||||
$paginator = Invoice::scope()->withTrashed();
|
||||
$invoices = Invoice::scope()->withTrashed()
|
||||
->with(array_merge(['invoice_items'], $this->getIncluded()));
|
||||
|
||||
if ($clientPublicId = Input::get('client_id')) {
|
||||
|
Loading…
Reference in New Issue
Block a user