diff --git a/app/Console/Commands/BillReminder.php b/app/Console/Commands/BillReminder.php index 8c5cf2a1e..77362cf31 100644 --- a/app/Console/Commands/BillReminder.php +++ b/app/Console/Commands/BillReminder.php @@ -53,7 +53,11 @@ class BillReminder extends Command $company->setSettings(); - //$days = explode(',', setting('general.schedule_bill_days', '1,3')); + // Don't send reminders if disabled + if (!$company->send_bill_reminder) { + continue; + } + $days = explode(',', $company->schedule_bill_days); foreach ($days as $day) { diff --git a/app/Console/Commands/InvoiceReminder.php b/app/Console/Commands/InvoiceReminder.php index bb10f505e..cc459c114 100644 --- a/app/Console/Commands/InvoiceReminder.php +++ b/app/Console/Commands/InvoiceReminder.php @@ -53,7 +53,11 @@ class InvoiceReminder extends Command $company->setSettings(); - //$days = explode(',', config('general.schedule_invoice_days', '1,3')); + // Don't send reminders if disabled + if (!$company->send_invoice_reminder) { + continue; + } + $days = explode(',', $company->schedule_invoice_days); foreach ($days as $day) {