1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor formatting

This commit is contained in:
David Bomba 2023-03-12 16:52:56 +11:00
parent 1b5b757a95
commit 3df638a0c3

View File

@ -296,7 +296,7 @@ class EmailDefaults
}
/** UBL xml file */
if ($this->email->email_object->entity instanceof Invoice && $this->email->email_object->settings->ubl_email_attachment) {
if ($this->email->email_object->settings->ubl_email_attachment && $this->email->email_object->entity instanceof Invoice) {
$ubl_string = (new CreateUbl($this->email->email_object->entity))->handle();
if ($ubl_string) {
@ -307,7 +307,6 @@ class EmailDefaults
if(!$this->email->email_object->settings->document_email_attachment)
return $this;
/* Company Documents */
$this->email->email_object->documents = array_merge($this->email->email_object->documents, $this->email->company->documents->pluck('id')->toArray());