This commit is contained in:
Carvallegro
2017-12-31 06:12:28 +11:00
398 changed files with 23534 additions and 1562 deletions

View File

@@ -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);
}
}
}
@@ -76,5 +78,4 @@ class BillReminder extends Command
}
}
}
}

View File

@@ -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);
}
}
}
@@ -67,7 +69,9 @@ class InvoiceReminder extends Command
foreach ($invoices as $invoice) {
// Notify the customer
$invoice->customer->notify(new Notification($invoice));
if ($invoice->customer && !empty($invoice->customer_email)) {
$invoice->customer->notify(new Notification($invoice));
}
// Notify all users assigned to this company
foreach ($company->users as $user) {
@@ -79,5 +83,4 @@ class InvoiceReminder extends Command
}
}
}
}