mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
23 lines
460 B
PHP
23 lines
460 B
PHP
<?php
|
|
|
|
namespace App\Ninja\Intents\WebApp;
|
|
|
|
use App\Ninja\Intents\InvoiceIntent;
|
|
|
|
class ListInvoiceIntent extends InvoiceIntent
|
|
{
|
|
public function process()
|
|
{
|
|
$this->loadStates(ENTITY_INVOICE);
|
|
$this->loadStatuses(ENTITY_INVOICE);
|
|
|
|
if ($client = $this->requestClient()) {
|
|
$url = $client->present()->url . '#invoices';
|
|
} else {
|
|
$url = '/invoices';
|
|
}
|
|
|
|
return redirect($url);
|
|
}
|
|
}
|