mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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()
|
public function index()
|
||||||
{
|
{
|
||||||
$paginator = Invoice::scope();
|
$paginator = Invoice::scope()->withTrashed();
|
||||||
$invoices = Invoice::scope()
|
$invoices = Invoice::scope()->withTrashed()
|
||||||
->with(array_merge(['invoice_items'], $this->getIncluded()));
|
->with(array_merge(['invoice_items'], $this->getIncluded()));
|
||||||
|
|
||||||
if ($clientPublicId = Input::get('client_id')) {
|
if ($clientPublicId = Input::get('client_id')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user