mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Improve order of convert quote activities
This commit is contained in:
parent
936c4c3468
commit
929a1e1ee0
@ -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…
Reference in New Issue
Block a user