By default include trashed invoices

This commit is contained in:
David Bomba 2016-01-16 09:22:22 +11:00
parent 7b61c8a46d
commit 12d3444808

View File

@ -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')) {