mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Fixes for email invoice
This commit is contained in:
parent
f0e4a94bee
commit
840696ad3c
@ -93,6 +93,7 @@ class UserEmailChanged extends BaseMailerJob implements ShouldQueue
|
||||
'signature' => $this->company->owner()->signature,
|
||||
'logo' => $this->company->present()->logo(),
|
||||
'settings' => $this->settings,
|
||||
'whitelabel' => $this->client->user->account->isPaid() ? true : false,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -46,6 +46,10 @@ class InvoiceEmailedNotification implements ShouldQueue
|
||||
|
||||
$first_notification_sent = true;
|
||||
|
||||
// $invoice = $event->invitation->invoice;
|
||||
// $invoice->last_sent_date = now();
|
||||
// $invoice->save();
|
||||
|
||||
foreach ($event->invitation->company->company_users as $company_user) {
|
||||
$user = $company_user->user;
|
||||
|
||||
|
@ -90,6 +90,7 @@ class EntityPaidObject
|
||||
'signature' => $settings->email_signature,
|
||||
'logo' => $this->company->present()->logo(),
|
||||
'settings' => $settings,
|
||||
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
@ -85,7 +85,7 @@ class EntitySentObject
|
||||
'signature' => $settings->email_signature,
|
||||
'logo' => $this->company->present()->logo(),
|
||||
'settings' => $settings,
|
||||
|
||||
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ class EntityViewedObject
|
||||
'signature' => $settings->email_signature,
|
||||
'logo' => $this->company->present()->logo(),
|
||||
'settings' => $settings,
|
||||
|
||||
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
@ -77,7 +77,7 @@ class PaymentFailureObject
|
||||
'signature' => $signature,
|
||||
'logo' => $this->company->present()->logo(),
|
||||
'settings' => $this->client->getMergedSettings(),
|
||||
|
||||
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
@ -60,6 +60,8 @@ class TemplateEmail extends Mailable
|
||||
->text('email.template.plain', [
|
||||
'body' => $this->build_email->getBody(),
|
||||
'footer' => $this->build_email->getFooter(),
|
||||
'whitelabel' => $this->client->user->account->isPaid() ? true : false,
|
||||
'settings' => $settings,
|
||||
])
|
||||
->view($template_name, [
|
||||
'body' => $this->build_email->getBody(),
|
||||
|
@ -124,7 +124,7 @@ class BaseNotification extends Notification implements ShouldQueue
|
||||
'logo' => $this->entity->company->present()->logo(),
|
||||
'signature' => $this->settings->email_signature,
|
||||
'settings' => $this->settings,
|
||||
|
||||
'whitelabel' => $this->entity->company->account->isPaid() ? true : false,
|
||||
];
|
||||
|
||||
return $data;
|
||||
|
Loading…
Reference in New Issue
Block a user