hidden from customers without email
This commit is contained in:
@ -575,7 +575,7 @@ class Document extends Model
|
||||
} catch (\Exception $e) {}
|
||||
|
||||
try {
|
||||
if ($this->type == 'invoice') {
|
||||
if (! empty($this->contact) && $this->contact->email && $this->type == 'invoice') {
|
||||
$actions[] = [
|
||||
'type' => 'button',
|
||||
'title' => trans('invoices.send_mail'),
|
||||
|
Reference in New Issue
Block a user