mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Minor fixes for entity sent description
This commit is contained in:
parent
c0c9c00c80
commit
90198e6b7a
@ -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,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -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,
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user