1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00

Merge pull request #7030 from turbo124/v5-develop

Fixes for quote approval event
This commit is contained in:
David Bomba 2021-12-12 19:02:45 +11:00 committed by GitHub
commit 98e940b53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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();