mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-12-07 14:35:35 -05:00
20 lines
371 B
PHP
20 lines
371 B
PHP
<?php
|
|
|
|
namespace App\Ninja\Intents\WebApp;
|
|
|
|
use App\Ninja\Intents\InvoiceIntent;
|
|
|
|
class ListInvoiceIntent extends InvoiceIntent
|
|
{
|
|
public function process()
|
|
{
|
|
if ($client = $this->requestClient()) {
|
|
$url = $client->present()->url . '#invoices';
|
|
} else {
|
|
$url = '/invoices';
|
|
}
|
|
|
|
return redirect($url);
|
|
}
|
|
}
|