Minor fixes for quote approvals

This commit is contained in:
David Bomba 2022-03-17 15:48:50 +11:00
parent 4900946fa1
commit cf3140f032
3 changed files with 9 additions and 3 deletions

View File

@ -1 +1 @@
5.3.69 5.3.70

View File

@ -131,6 +131,12 @@ class QuoteService
{ {
$this->setStatus(Quote::STATUS_APPROVED)->save(); $this->setStatus(Quote::STATUS_APPROVED)->save();
if (!$contact) {
$contact = $this->quote->invitations->first()->contact;
}
event(new QuoteWasApproved($contact, $this->quote, $this->quote->company, Ninja::eventVars()));
return $this; return $this;
} }

View File

@ -14,8 +14,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true), 'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => '5.3.69', 'app_version' => '5.3.70',
'app_tag' => '5.3.69', 'app_tag' => '5.3.70',
'minimum_client_version' => '5.0.16', 'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1', 'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''), 'api_secret' => env('API_SECRET', ''),