hidden from customers without email

This commit is contained in:
Cihan Şentürk
2022-07-14 01:27:36 +03:00
parent 0c687493fd
commit 6803af130d
2 changed files with 15 additions and 13 deletions

View File

@ -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'),