mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
By default include trashed invoices
This commit is contained in:
parent
7b61c8a46d
commit
12d3444808
@ -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