mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 05:32:39 +01:00
Merge pull request #7030 from turbo124/v5-develop
Fixes for quote approval event
This commit is contained in:
commit
98e940b53f
@ -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()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user