1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Minor fixes for entity sent description

This commit is contained in:
David Bomba 2021-07-27 07:03:33 +10:00
parent c0c9c00c80
commit 90198e6b7a
2 changed files with 4 additions and 4 deletions

View File

@ -121,7 +121,7 @@ class EntitySentObject
ctrans(
$this->template_subject,
[
'client' => $this->contact->present()->name(),
'client' => $this->contact->client->present()->name(),
'invoice' => $this->entity->number,
]
);
@ -133,7 +133,7 @@ class EntitySentObject
$this->template_body,
[
'amount' => $this->getAmount(),
'client' => $this->contact->present()->name(),
'client' => $this->contact->client->present()->name(),
'invoice' => $this->entity->number,
]
);

View File

@ -103,14 +103,14 @@ class EntitySentNotification extends Notification
"texts.notification_{$this->entity_name}_sent_subject",
[
'amount' => $amount,
'client' => $this->contact->present()->name(),
'client' => $this->contact->client->present()->name(),
'invoice' => $this->entity->number,
]
))
->attachment(function ($attachment) use ($amount) {
$attachment->title(ctrans('texts.invoice_number_placeholder', ['invoice' => $this->entity->number]), $this->invitation->getAdminLink())
->fields([
ctrans('texts.client') => $this->contact->present()->name(),
ctrans('texts.client') => $this->contact->client->present()->name(),
ctrans('texts.amount') => $amount,
]);
});