diff --git a/app/Notifications/Expense/Bill.php b/app/Notifications/Expense/Bill.php index e80b9ad56..e436f4f92 100644 --- a/app/Notifications/Expense/Bill.php +++ b/app/Notifications/Expense/Bill.php @@ -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)); } diff --git a/app/Notifications/Income/Invoice.php b/app/Notifications/Income/Invoice.php index 6ddb0862e..7d960114d 100644 --- a/app/Notifications/Income/Invoice.php +++ b/app/Notifications/Income/Invoice.php @@ -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