diff --git a/app/Http/Livewire/CreditsTable.php b/app/Http/Livewire/CreditsTable.php index e756de8d4f..fe7f1f1487 100644 --- a/app/Http/Livewire/CreditsTable.php +++ b/app/Http/Livewire/CreditsTable.php @@ -42,8 +42,8 @@ class CreditsTable extends Component ->where('is_deleted', 0) ->where(function ($query){ $query->whereDate('due_date', '>=', now()) - ->orWhereNull('due_date') - ->orWhere('due_date', '=', ''); + ->orWhereNull('due_date'); + //->orWhere('due_date', '=', ''); }) ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') ->withTrashed() diff --git a/app/Services/Quote/QuoteService.php b/app/Services/Quote/QuoteService.php index f830ba6bc7..b5b2088579 100644 --- a/app/Services/Quote/QuoteService.php +++ b/app/Services/Quote/QuoteService.php @@ -110,7 +110,7 @@ class QuoteService $contact = $this->quote->invitations->first()->contact; } - // event(new QuoteWasApproved($contact, $this->quote, $this->quote->company, Ninja::eventVars())); + event(new QuoteWasApproved($contact, $this->quote, $this->quote->company, Ninja::eventVars())); if ($this->quote->client->getSetting('auto_convert_quote')) { $this->convert();