By default include trashed invoices
This commit is contained in:
parent
7b61c8a46d
commit
12d3444808
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue