get customer name from invoice table #135
This commit is contained in:
parent
ee34dec24b
commit
2dd2612af0
@ -47,7 +47,7 @@ class Bill extends Notification
|
|||||||
public function toMail($notifiable)
|
public function toMail($notifiable)
|
||||||
{
|
{
|
||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
->line('You are receiving this email because you have an upcoming ' . money($this->bill->amount, $this->bill->currency_code, true) . ' bill to ' . $this->bill->vendor->name . ' vendor.')
|
->line('You are receiving this email because you have an upcoming ' . money($this->bill->amount, $this->bill->currency_code, true) . ' bill to ' . $this->bill->vendor_name . ' vendor.')
|
||||||
->action('Add Payment', url('expenses/bills', $this->bill->id, true));
|
->action('Add Payment', url('expenses/bills', $this->bill->id, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class Invoice extends Notification
|
|||||||
public function toMail($notifiable)
|
public function toMail($notifiable)
|
||||||
{
|
{
|
||||||
$message = (new MailMessage)
|
$message = (new MailMessage)
|
||||||
->line(trans('invoices.notification.message', ['amount' => money($this->invoice->amount, $this->invoice->currency_code, true), 'customer' => $this->invoice->customer->name]))
|
->line(trans('invoices.notification.message', ['amount' => money($this->invoice->amount, $this->invoice->currency_code, true), 'customer' => $this->invoice->customer_name]))
|
||||||
->action(trans('invoices.notification.button'), url('customers/invoices', $this->invoice->id, true));
|
->action(trans('invoices.notification.button'), url('customers/invoices', $this->invoice->id, true));
|
||||||
|
|
||||||
// Attach the PDF file if available
|
// Attach the PDF file if available
|
||||||
|
Loading…
x
Reference in New Issue
Block a user