From bd8a6b462a0e124d638c86a7967abdfe7aa65435 Mon Sep 17 00:00:00 2001 From: michael-hampton Date: Sat, 15 Feb 2020 11:51:29 +0000 Subject: [PATCH] Update CreateInvitations.php (#3331) --- app/Services/Quote/CreateInvitations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Quote/CreateInvitations.php b/app/Services/Quote/CreateInvitations.php index 918f5fa2c3..3e0b0a85d4 100644 --- a/app/Services/Quote/CreateInvitations.php +++ b/app/Services/Quote/CreateInvitations.php @@ -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(); } });