From 6c301c2c95893e35e843db4932ae6ac35a29e947 Mon Sep 17 00:00:00 2001 From: CTSoft Date: Mon, 10 Aug 2020 20:31:00 +0200 Subject: [PATCH] Add additional company tags in notifications --- app/Notifications/Portal/PaymentReceived.php | 10 +++++++++- app/Notifications/Purchase/Bill.php | 10 +++++++++- app/Notifications/Sale/Invoice.php | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/app/Notifications/Portal/PaymentReceived.php b/app/Notifications/Portal/PaymentReceived.php index 837504d77..b8fffa435 100644 --- a/app/Notifications/Portal/PaymentReceived.php +++ b/app/Notifications/Portal/PaymentReceived.php @@ -91,6 +91,10 @@ class PaymentReceived extends Notification '{transaction_payment_method}', '{customer_name}', '{company_name}', + '{company_email}', + '{company_tax_number}', + '{company_phone}', + '{company_address}', ]; } @@ -108,7 +112,11 @@ class PaymentReceived extends Notification company_date($this->transaction->paid_at), $this->transaction->payment_method, $this->invoice->contact_name, - $this->invoice->company->name + $this->invoice->company->name, + $this->invoice->company->email, + $this->invoice->company->tax_number, + $this->invoice->company->phone, + nl2br(trim($this->invoice->company->address)), ]; } } diff --git a/app/Notifications/Purchase/Bill.php b/app/Notifications/Purchase/Bill.php index 9aa607692..6bdc35ef0 100644 --- a/app/Notifications/Purchase/Bill.php +++ b/app/Notifications/Purchase/Bill.php @@ -70,6 +70,10 @@ class Bill extends Notification '{bill_admin_link}', '{vendor_name}', '{company_name}', + '{company_email}', + '{company_tax_number}', + '{company_phone}', + '{company_address}', ]; } @@ -81,7 +85,11 @@ class Bill extends Notification company_date($this->bill->due_at), route('bills.show', $this->bill->id), $this->bill->contact_name, - $this->bill->company->name + $this->bill->company->name, + $this->bill->company->email, + $this->bill->company->tax_number, + $this->bill->company->phone, + nl2br(trim($this->bill->company->address)), ]; } } diff --git a/app/Notifications/Sale/Invoice.php b/app/Notifications/Sale/Invoice.php index ed704ac0b..2f6fd0777 100644 --- a/app/Notifications/Sale/Invoice.php +++ b/app/Notifications/Sale/Invoice.php @@ -80,6 +80,10 @@ class Invoice extends Notification '{invoice_portal_link}', '{customer_name}', '{company_name}', + '{company_email}', + '{company_tax_number}', + '{company_phone}', + '{company_address}', ]; } @@ -93,7 +97,11 @@ class Invoice extends Notification route('invoices.show', $this->invoice->id), route('portal.invoices.show', $this->invoice->id), $this->invoice->contact_name, - $this->invoice->company->name + $this->invoice->company->name, + $this->invoice->company->email, + $this->invoice->company->tax_number, + $this->invoice->company->phone, + nl2br(trim($this->invoice->company->address)), ]; } }