diff --git a/app/Console/Commands/BillReminder.php b/app/Console/Commands/BillReminder.php index 7618c389f..e06564896 100644 --- a/app/Console/Commands/BillReminder.php +++ b/app/Console/Commands/BillReminder.php @@ -52,7 +52,9 @@ class BillReminder extends Command $days = explode(',', $company->schedule_bill_days); foreach ($days as $day) { - $this->remind(trim($day), $company); + $day = (int) trim($day); + + $this->remind($day, $company); } } } diff --git a/app/Console/Commands/InvoiceReminder.php b/app/Console/Commands/InvoiceReminder.php index f1cc21098..c0f342289 100644 --- a/app/Console/Commands/InvoiceReminder.php +++ b/app/Console/Commands/InvoiceReminder.php @@ -52,7 +52,9 @@ class InvoiceReminder extends Command $days = explode(',', $company->schedule_invoice_days); foreach ($days as $day) { - $this->remind(trim($day), $company); + $day = (int) trim($day); + + $this->remind($day, $company); } } }