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