1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +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( ctrans(
$this->template_subject, $this->template_subject,
[ [
'client' => $this->contact->present()->name(), 'client' => $this->contact->client->present()->name(),
'invoice' => $this->entity->number, 'invoice' => $this->entity->number,
] ]
); );
@ -133,7 +133,7 @@ class EntitySentObject
$this->template_body, $this->template_body,
[ [
'amount' => $this->getAmount(), 'amount' => $this->getAmount(),
'client' => $this->contact->present()->name(), 'client' => $this->contact->client->present()->name(),
'invoice' => $this->entity->number, 'invoice' => $this->entity->number,
] ]
); );

View File

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