mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
23 lines
516 B
PHP
23 lines
516 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Ninja\Intents\WebApp;
|
||
|
|
||
|
use App\Models\Invoice;
|
||
|
use App\Ninja\Intents\BaseIntent;
|
||
|
|
||
|
class CreateQuoteIntent extends BaseIntent
|
||
|
{
|
||
|
public function process()
|
||
|
{
|
||
|
$client = $this->requestClient();
|
||
|
$clientPublicId = $client ? $client->public_id : null;
|
||
|
|
||
|
//$invoiceItems = $this->requestInvoiceItems();
|
||
|
|
||
|
$url = '/quotes/create/' . $clientPublicId . '?';
|
||
|
$url .= $this->requestFieldsAsString(Invoice::$requestFields);
|
||
|
|
||
|
return redirect($url);
|
||
|
}
|
||
|
}
|