mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for reminders
This commit is contained in:
parent
a7b8845edb
commit
fde59d0cd8
@ -1 +1 @@
|
|||||||
5.3.80
|
5.3.81
|
@ -81,10 +81,19 @@ class ReminderJob implements ShouldQueue
|
|||||||
$invoice = $this->calcLateFee($invoice, $reminder_template);
|
$invoice = $this->calcLateFee($invoice, $reminder_template);
|
||||||
|
|
||||||
$invoice->service()->touchPdf();
|
$invoice->service()->touchPdf();
|
||||||
|
|
||||||
|
//20-04-2022 fixes for endless reminders - generic template naming was wrong
|
||||||
|
$enabled_reminder = "enable_".$reminder_template;
|
||||||
|
|
||||||
|
if($reminder_template == 'endless_reminder')
|
||||||
|
$enabled_reminder = 'enable_reminder_endless';
|
||||||
|
|
||||||
//check if this reminder needs to be emailed
|
//check if this reminder needs to be emailed
|
||||||
//15-01-2022 - insert addition if block if send_reminders is definitely set
|
//15-01-2022 - insert addition if block if send_reminders is definitely set
|
||||||
if(in_array($reminder_template, ['reminder1','reminder2','reminder3','reminder_endless']) && $invoice->client->getSetting("enable_".$reminder_template) && $invoice->client->getSetting("send_reminders") && $invoice->company->account->isPaidHostedClient())
|
if(in_array($reminder_template, ['reminder1','reminder2','reminder3','reminder_endless','endless_reminder']) &&
|
||||||
|
$invoice->client->getSetting($enabled_reminder) &&
|
||||||
|
$invoice->client->getSetting("send_reminders") &&
|
||||||
|
(Ninja::isSelfHost() || $invoice->company->account->isPaidHostedClient()))
|
||||||
{
|
{
|
||||||
$invoice->invitations->each(function ($invitation) use ($invoice, $reminder_template) {
|
$invoice->invitations->each(function ($invitation) use ($invoice, $reminder_template) {
|
||||||
EmailEntity::dispatch($invitation, $invitation->company, $reminder_template);
|
EmailEntity::dispatch($invitation, $invitation->company, $reminder_template);
|
||||||
|
@ -14,8 +14,8 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => '5.3.80',
|
'app_version' => '5.3.81',
|
||||||
'app_tag' => '5.3.80',
|
'app_tag' => '5.3.81',
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', ''),
|
'api_secret' => env('API_SECRET', ''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user