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

23 lines
450 B
PHP

<?php
namespace App\Ninja\Intents\WebApp;
use App\Ninja\Intents\InvoiceIntent;
class ListQuoteIntent extends InvoiceIntent
{
public function process()
{
$this->loadStates(ENTITY_QUOTE);
$this->loadStatuses(ENTITY_QUOTE);
if ($client = $this->requestClient()) {
$url = $client->present()->url . '#quotes';
} else {
$url = '/quotes';
}
return redirect($url);
}
}