1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Ninja/Intents/WebApp/ListRecurringInvoiceIntent.php
2017-04-06 16:47:37 +03:00

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);
}
}