mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fix for entity created object
This commit is contained in:
parent
9ecbaea186
commit
feedaa479f
@ -23,7 +23,7 @@ class EntityCreatedObject
|
|||||||
|
|
||||||
public $entity;
|
public $entity;
|
||||||
|
|
||||||
public $contact;
|
public $client;
|
||||||
|
|
||||||
public $company;
|
public $company;
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ class EntityCreatedObject
|
|||||||
/* Set customized translations _NOW_ */
|
/* Set customized translations _NOW_ */
|
||||||
$t->replace(Ninja::transformTranslations($this->entity->company->settings));
|
$t->replace(Ninja::transformTranslations($this->entity->company->settings));
|
||||||
|
|
||||||
$this->contact = $this->entity->invitations()->first()->contact;
|
$this->client = $this->entity->client;
|
||||||
$this->company = $this->entity->company;
|
$this->company = $this->entity->company;
|
||||||
|
|
||||||
$this->setTemplate();
|
$this->setTemplate();
|
||||||
@ -100,7 +100,7 @@ class EntityCreatedObject
|
|||||||
ctrans(
|
ctrans(
|
||||||
$this->template_subject,
|
$this->template_subject,
|
||||||
[
|
[
|
||||||
'client' => $this->contact->present()->name(),
|
'client' => $this->client->present()->name(),
|
||||||
'invoice' => $this->entity->number,
|
'invoice' => $this->entity->number,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
@ -112,7 +112,7 @@ class EntityCreatedObject
|
|||||||
$this->template_body,
|
$this->template_body,
|
||||||
[
|
[
|
||||||
'amount' => $this->getAmount(),
|
'amount' => $this->getAmount(),
|
||||||
'client' => $this->contact->present()->name(),
|
'client' => $this->client->present()->name(),
|
||||||
'invoice' => $this->entity->number,
|
'invoice' => $this->entity->number,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user