get customer name from invoice table #135

This commit is contained in:
denisdulici 2017-12-08 13:55:23 +03:00
parent ee34dec24b
commit 2dd2612af0
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Bill extends Notification
public function toMail($notifiable)
{
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));
}

View File

@ -47,7 +47,7 @@ class Invoice extends Notification
public function toMail($notifiable)
{
$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));
// Attach the PDF file if available