Improve order of convert quote activities
This commit is contained in:
parent
ca67a76b95
commit
d03dc07d30
1 changed files with 2 additions and 2 deletions
|
|
@ -144,6 +144,8 @@ class InvoiceService extends BaseService
|
|||
return null;
|
||||
}
|
||||
|
||||
event(new QuoteInvitationWasApproved($quote, $invitation));
|
||||
|
||||
if ($account->auto_convert_quote) {
|
||||
$invoice = $this->convertQuote($quote);
|
||||
|
||||
|
|
@ -156,8 +158,6 @@ class InvoiceService extends BaseService
|
|||
$quote->markApproved();
|
||||
}
|
||||
|
||||
event(new QuoteInvitationWasApproved($quote, $invitation));
|
||||
|
||||
return $invitation->invitation_key;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue