mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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,
|
'signature' => $this->company->owner()->signature,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'settings' => $this->settings,
|
'settings' => $this->settings,
|
||||||
|
'whitelabel' => $this->client->user->account->isPaid() ? true : false,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,6 +46,10 @@ class InvoiceEmailedNotification implements ShouldQueue
|
|||||||
|
|
||||||
$first_notification_sent = true;
|
$first_notification_sent = true;
|
||||||
|
|
||||||
|
// $invoice = $event->invitation->invoice;
|
||||||
|
// $invoice->last_sent_date = now();
|
||||||
|
// $invoice->save();
|
||||||
|
|
||||||
foreach ($event->invitation->company->company_users as $company_user) {
|
foreach ($event->invitation->company->company_users as $company_user) {
|
||||||
$user = $company_user->user;
|
$user = $company_user->user;
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@ class EntityPaidObject
|
|||||||
'signature' => $settings->email_signature,
|
'signature' => $settings->email_signature,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
|
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
@ -85,7 +85,7 @@ class EntitySentObject
|
|||||||
'signature' => $settings->email_signature,
|
'signature' => $settings->email_signature,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
|
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ class EntityViewedObject
|
|||||||
'signature' => $settings->email_signature,
|
'signature' => $settings->email_signature,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
|
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
@ -77,7 +77,7 @@ class PaymentFailureObject
|
|||||||
'signature' => $signature,
|
'signature' => $signature,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'settings' => $this->client->getMergedSettings(),
|
'settings' => $this->client->getMergedSettings(),
|
||||||
|
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
@ -60,6 +60,8 @@ class TemplateEmail extends Mailable
|
|||||||
->text('email.template.plain', [
|
->text('email.template.plain', [
|
||||||
'body' => $this->build_email->getBody(),
|
'body' => $this->build_email->getBody(),
|
||||||
'footer' => $this->build_email->getFooter(),
|
'footer' => $this->build_email->getFooter(),
|
||||||
|
'whitelabel' => $this->client->user->account->isPaid() ? true : false,
|
||||||
|
'settings' => $settings,
|
||||||
])
|
])
|
||||||
->view($template_name, [
|
->view($template_name, [
|
||||||
'body' => $this->build_email->getBody(),
|
'body' => $this->build_email->getBody(),
|
||||||
|
@ -124,7 +124,7 @@ class BaseNotification extends Notification implements ShouldQueue
|
|||||||
'logo' => $this->entity->company->present()->logo(),
|
'logo' => $this->entity->company->present()->logo(),
|
||||||
'signature' => $this->settings->email_signature,
|
'signature' => $this->settings->email_signature,
|
||||||
'settings' => $this->settings,
|
'settings' => $this->settings,
|
||||||
|
'whitelabel' => $this->entity->company->account->isPaid() ? true : false,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user