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