mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Update CreateInvitations.php (#3331)
This commit is contained in:
parent
53d72d47d4
commit
bd8a6b462a
@ -22,12 +22,12 @@ class CreateInvitations
|
||||
->whereQuoteId($quote->id)
|
||||
->first();
|
||||
|
||||
if (!$invitation && $contact->send_quote) {
|
||||
if (!$invitation && $contact->send_invoice) {
|
||||
$ii = QuoteInvitationFactory::create($quote->company_id, $quote->user_id);
|
||||
$ii->quote_id = $quote->id;
|
||||
$ii->client_contact_id = $contact->id;
|
||||
$ii->save();
|
||||
} elseif ($invitation && !$contact->send_quote) {
|
||||
} elseif ($invitation && !$contact->send_invoice) {
|
||||
$invitation->delete();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user