Make email not required for customer/vendor

This commit is contained in:
Cüneyt Şentürk
2017-12-16 13:43:03 +03:00
parent e033739c09
commit 4afe9c9dd3
19 changed files with 113 additions and 25 deletions

View File

@@ -69,7 +69,7 @@ class InvoiceReminder extends Command
foreach ($invoices as $invoice) {
// Notify the customer
if ($invoice->customer) {
if ($invoice->customer && !empty($invoice->customer_email)) {
$invoice->customer->notify(new Notification($invoice));
}
@@ -83,5 +83,4 @@ class InvoiceReminder extends Command
}
}
}
}