1
0
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:
Hillel Coren 2017-03-12 22:01:08 +02:00
parent 936c4c3468
commit 929a1e1ee0

View File

@ -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;
}