This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"alias": "$LOWER_NAME$",
|
||||
"description": "",
|
||||
"version": "1.0.0",
|
||||
"category": "payment-gateways",
|
||||
"category": "payment-gateway",
|
||||
"keywords": [],
|
||||
"active": 1,
|
||||
"order": 0,
|
||||
|
||||
Reference in New Issue
Block a user