mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fix for quote event
This commit is contained in:
parent
fe4885f5a6
commit
dc63e533df
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
namespace App\Events\Quote;
|
namespace App\Events\Quote;
|
||||||
|
|
||||||
|
use App\Models\Company;
|
||||||
|
use App\Models\Quote;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +53,6 @@ class EntityPaidMailer extends BaseMailerJob implements ShouldQueue
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
info("entity paid mailer");
|
|
||||||
//Set DB
|
//Set DB
|
||||||
//
|
//
|
||||||
MultiDB::setDb($this->company->db);
|
MultiDB::setDb($this->company->db);
|
||||||
|
@ -125,7 +125,7 @@ class QuoteInvitation extends BaseModel
|
|||||||
$storage_path = Storage::url($this->quote->client->quote_filepath() . $this->quote->number . '.pdf');
|
$storage_path = Storage::url($this->quote->client->quote_filepath() . $this->quote->number . '.pdf');
|
||||||
|
|
||||||
if (!Storage::exists($this->quote->client->quote_filepath() . $this->quote->number . '.pdf')) {
|
if (!Storage::exists($this->quote->client->quote_filepath() . $this->quote->number . '.pdf')) {
|
||||||
event(new QuoteWasUpdated($this, $this->company, Ninja::eventVars()));
|
event(new QuoteWasUpdated($this->quote, $this->company, Ninja::eventVars()));
|
||||||
CreateQuotePdf::dispatchNow($this);
|
CreateQuotePdf::dispatchNow($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user